<<< What can we do with pointers? | Index | Variables in memory >>> |
to understand billions of lines of code already written in C/C++
to access individual characters in the string: "HELLO"
to allow indirect function parameters
to avoid copying large objects when passing them to functions
to access memory that was allocated dynamically
to navigate arrays of variables
to build dynamic data structures, such as lists and trees
to use many OOP features of C++, e.g. operator overloading and polymorphism
<<< What can we do with pointers? | Index | Variables in memory >>> |