Quote Originally Posted by syzygy View Post
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.
but w8, that means that the pointers location, the location of a, will change acording to the inputed string??

and btw im doing c now.