same code as below
char *p;
p = "123";
p = "234";
on my machine , it can be compiled with gcc, but failed with g++;
I don't know why it works in gcc.. why the *p can change its value;
same code as below
char *p;
p = "123";
p = "234";
on my machine , it can be compiled with gcc, but failed with g++;
I don't know why it works in gcc.. why the *p can change its value;