Pointers allow you to refer to the same space in memory from multiple
locations.
They need because there are so many advantages:
1. To dynamic allocate in your memory.
2. This means that you can update memory in one location and the change can be seen from another location in your program. You will also save space by being able to share components in your data structures.
3. You should use pointers any place where you need to obtain and pass around the address to a specific spot in memory. You can also use pointers to navigate arrays:
4. In some cases, function pointers are required to use functions that are in a shared library (.DLL or .so). This includes performing stuff across languages, where oftentimes a DLL interface is provided.
5. Data structures - node link pointers for special trees you are making like trie.
To learn more about Pointer
Connect with us @ tccicomputercoaching.com
For more information aboutC , C++, Python , Java
Call us @ 98256 18292.
Mail us @ tccicoaching@gmail.com
Visit us @ http://tccicomputercoaching.com/
They need because there are so many advantages:
1. To dynamic allocate in your memory.
2. This means that you can update memory in one location and the change can be seen from another location in your program. You will also save space by being able to share components in your data structures.
3. You should use pointers any place where you need to obtain and pass around the address to a specific spot in memory. You can also use pointers to navigate arrays:
4. In some cases, function pointers are required to use functions that are in a shared library (.DLL or .so). This includes performing stuff across languages, where oftentimes a DLL interface is provided.
5. Data structures - node link pointers for special trees you are making like trie.
To learn more about Pointer
Connect with us @ tccicomputercoaching.com
For more information aboutC , C++, Python , Java
Call us @ 98256 18292.
Mail us @ tccicoaching@gmail.com
Visit us @ http://tccicomputercoaching.com/
No comments:
Post a Comment