hi
i noticed something while working with arrays, if i do this:
the values in the "second values" are diferent, meaning that a[0] changed its position.Code:int main() { char* a="abc"; printf("%p %p %p %p", a, &a[0], &a[1], &a[2]); a="cba"; printf("\nsecond values: %p %p %p %p", a, &a[0], &a[1], &a[2]); }
so this means that everytime i change an array like this: a="HELLO WORLD" the a[0] will change its position??