why is char's sign-ness not defined in C?

前端 未结 5 1294
走了就别回头了
走了就别回头了 2020-12-06 16:19

The C standard states:

ISO/IEC 9899:1999, 6.2.5.15 (p. 49)

The three types char, signed char, and unsigned char are collectively called th

5条回答
  •  春和景丽
    2020-12-06 16:54

    Perhaps historically some implementations' "char" were signed and some were unsigned, and so to be compatible with both they couldn't define it as one or the other.

提交回复
热议问题