Andrew Koenig wrote:
> "Gianni Mariani" <gi3nospam@mariani.ws> wrote in message
> news:46da93bf$0$28513$5a62ac22@per-qv1-newsreader-01.iinet.net.au...
>
>> This is one of those really bad decisions by the C++ committee.
>
>> String literals are of type const char [], however, for reasons of wisdom
>> beyond my grasp, the standard allows sting literals (and only string
>> literals) to be assigned to a "char * ptr" by implicitly const casting.
>
> C++ does that because C allows it too: In C, you can convert const char *
> to char * without a cast.
In C, you cannot convert a const char * to char * without a cast. In C, you
can assign a string literal to a char * without a cast, because string
literals have type array of char.