Well, GCC complains about
Code:
"string"[3] = 0;
as expected:
Code:
constchar.c:4: error: assignment of read-only location
But it has no qualms with
Code:
char *string = "string";
string[3] = 0;
I just thought it was strange . . . .