First page Back Continue Last page Graphics
Pointer Arithmetic (cont.)
The compiler knows what incrementing a pointer means.
It adds enough bytes to move the pointer to the start of the next element.
If the pointer points to integer, incrementing adds 4.
If the pointer points to short, incrementing adds 2.
If the pointer points to double, incrementing adds 8.