我想了解下,谢谢。作者: bruceteen 时间: 2010-12-27 22:44
摘录自 ISO/IEC 9899:1999(也就是俗称的C99标准文件),第6.4.4.4节(第61页):
10
An integer character constant has type int. The value of an integer character constant
containing a single character that maps to a single-byte execution character is the
numerical value of the representation of the mapped character interpreted as an integer.
The value of an integer character constant containing more than one character (e.g.,
'ab'), or containing a character or escape sequence that does not map to a single-byte
execution character, is implementation-defined. If an integer character constant contains
a single character or escape sequence, its value is the one that results when an object with
type char whose value is that of the single character or escape sequence is converted to
type int.