This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: FW: why it is not from 0?
- From: bjorn rohde jensen <bjensen at fastmail dot fm>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 28 May 2011 10:47:05 +0200
- Subject: Re: FW: why it is not from 0?
- References: <ED91C896BC086A247AE49F5983AD96D0@ericlin.fsshl.zzn.com> <SNT134-w942B39656E6B747DE2209EA790@phx.gbl>
Hi Eric,
This is really a question about character sets and string representation
in C and not a question about GCC.
What you are seeing are the integer values of the individual characters
in the array, that is '0' to '8' followed by the string terminator '\0'.
The values, you see, are consistent with with the ASCII character set.
http://en.wikipedia.org/wiki/ASCII
Try changing the string and compare the result with the ASCII tables.
Yours sincerely,
Bjorn