This precedes the time a classifier constwas introduced in C. The body of C standards is very conservative with respect to existing code. Any improvement of the language should be carried out in such a way that it does not violate the existing relevant code that was written for the previous version of the standard.
If such things lead to undesirable complications, the function then becomes obsolete and can change a few years after that.
, char[] char const[], , , , . char const* , .
: , , .
int main(void) {
"hello"[0] = 'H';
char * a = "hoho";
a[0] = 'H';
}
gcc , . clang .