icp/oer/courses/c-basics/sections/10-pointer/06-pointers-to-pointer/content.html

11 lines
462 B
HTML

<p>
An interesting thing you can do with pointers, is the possibility to have pointers point to pointers.
This may seems weird, but it is actually useful. When you want to talk about an array of pointers,
or and array of arrays.
</p>
<p>
To declare a pointer to a pointer you just add more *-operators.
For example <it>char **PointerToPointer;</it>
Nesting pointers like this can easily get confusing, try to avoid using more than two or three.
</p>