Quote from C++03 2.2 Character sets:
"The basic execution character set and the basic execution wide-character set shall each contain all the members of the basic source character set..The values of the members of the execution character sets are implementation-defined, and any additional members are locale-specific."
According to this, 'A'
, which belongs to the execution character set, its value is implementation-defined. So it's not 65(ASCII code of 'A'
in decimal), what?!
// Not always 65?
printf ("%d", 'A');
Or I've a misunderstanding as to the value of a character in execution character set?