Pointer Arithmetic
•
Subtracting pointers
–
Returns the number of memory
locations that must be traversed to
get from one to the other
»
vPtr2 = v[ 2 ];
vPtr = v[ 0 ];
vPtr2 - vPtr == 2;
•
i.e.
•
The difference between the two
pointers.