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

前端 未结 5 1304
走了就别回头了
走了就别回头了 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:34

    in those good old days C was defined, the character world was 7bit, so the sign-bit could be used for other things (like EOF)

提交回复
热议问题