C++Tutorial for Beginners 40 - Pointer Arithmetic; Adding, Subtracting and Comparing Pointers

Pointers can be added and subtracted, which sounds useless but is actually sometimes very useful. We can use pointer arithmetic to accomplish some rather deft manipulations of data that wouldn't otherwise be possible.

Click here to download source code for this tutorial.