<分区>
为什么像字节中的位数这样基本的东西一直由 C 标准实现定义?是否有这可能有用的示例?
来自 C99,3.6(可在此处获得 link)
3.6 byte
addressable unit of data storage large enough to hold any member of the basic character set of the execution environment
NOTE 1 It is possible to express the address of each individual byte of an object uniquely.
NOTE 2 A byte is composed of a contiguous sequence of bits, the number of which is implementation defined. The least significant bit is called the low-order bit; the most significant bit is called the high-order bit.
编辑:我问的是一些基本问题,为什么 C 标准在字节大小的位数方面提供了灵 active 。没有更具体地询问 sizeof(char) CHAR_BIT != 8 的好处是什么。如果问题仍然重复,请投反对票,我将关闭问题。