This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Signedness of char and puts()
On Fri, Mar 28, 2008 at 4:13 PM, Eljay Love-Jensen <eljay@adobe.com> wrote:
>
> > Does anyone know why this occurs?
>
> "Hello" is a char*, not an unsigned char* or signed char*.
>
> (In C++ "Hello" is a char const*.)
>
( Actually, to be pedantic, it's a char const [6] in C++. Normally
this doesn't matter, but someone just yesterday found a bug in
libstdc++ caused by it, so you never know. )