Up: Data Structures
back: Structures
-
Pointers contain a memory address; when you pass an array to a
function,
C++ passes the address of the first element in the array
-
By incrementing a pointer's value, you can direct the pointer
to point to the next value in an array
-
Functions that manipulate strings using pointers normally
traverse the string until the pointer points to the NULL character
-
When you use pointers to other array types,
your functions need to know the number
of elements in the array
or a special ending value