I was making a test with pointers in C, and when I tried this code:
int main()
{
char * b = "abc";
char * c = b;
*c = *(b+1); //problem
printf("%s",c);
}
I got a mistake on the commented line, what I was specting to print was bbc , why that pointer assignment isn't working?