Signedness of char and puts()
Matthew Woehlke
mw_triad@users.sourceforge.net
Sat Mar 29 01:19:00 GMT 2008
Eljay Love-Jensen wrote:
> Hi Ed,
>
>> Does anyone know why this occurs?
>
> Those are three different types.
> + char
> + unsigned char
> + signed char
>
> "Hello" is a char*, not an unsigned char* or signed char*.
>
> (In C++ "Hello" is a char const*.)
Isn't "Hello" technically const in C also, since -fwrite-strings was
(thankfully, rightly) killed?
--
Matthew
Do you know where your towel is?
More information about the Gcc-help
mailing list