Signedness of char and puts()
Michael Eager
eager@eagercon.com
Mon Mar 31 09:15: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, char is signed or unsigned, depending on the implementation.
In C++, it is a distinct type.
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
More information about the Gcc-help
mailing list