Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
If you point to items arranged one after another in memory, such as in an array, you can increment or decrement pointers to point to the next or previous item. For instance, the following example prints the first number in an array and then the second number by incrementing a pointer:
float values[4] = {0.0, 1.0, 2.0,
3.0};
float *pointer = &values[0];
printf("*pointer = %2.1f\n", *pointer);
printf("*(++pointer) = %2.1f",
*(++pointer));