字符值的范围Range of char Values

ANSI 3.2.1.1:“纯”char 的值范围与 signed charunsigned char 的值范围是否相同ANSI 3.2.1.1 Whether a "plain" char has the same range of values as a signed char or an unsigned char

所有带符号的字符值的范围都介于 -128 和 127 之间。All signed character values range from -128 to 127. 所有无符号的字符值的范围介于 0 和 255 之间。All unsigned character values range from 0 to 255.

/J 编译器选项将默认值从 signed 更改为 unsignedThe /J compiler option changes the default from signed to unsigned.

另请参阅See Also

字符Characters