Originally Posted by
syzygy
Argh, I'm wrong. Your pointer should be fine... Forget my nonsense.
The reason it's different is because you are setting the pointer to point to "abc" and then to "cba" which are different string literals at different locations in the program's memory. So, naturally, they are different memory addresses. In fact, all of the positions should be different in the second case.