On Mon, 17 Jan 2005 23:48:38 -0500, R Adsett wrote in comp.arch.embedded:
There's a very simple reason for this. String literals were part of the C language a good 15 years before the 1989 standard added the 'const' keyword, so that was 15 years worth of existing code that would have been broken.
In fact, even in C++ where string literals do have the type array of const char, they break the type system and allow the address of a string literal to be assigned to a pointer to mutable char, just because there is so much existing code.
Someday somebody will invent the perfect computer programming language. It might be you. For sure, I've given up on the idea that it will be me!