有没有像 bits_in_byte (8) 这样的常数?

Is there a constant something like bits_in_byte (8)?

C/C++中是否有反映一个字节(8)中有多少位的标准常量?类似于 CHAR_BIT 但对于 byte.

按照C标准,一个char是一个字节。因此CHAR_BIT是一个字节中的位数。

C标准说CHAR_BIT"number of bits for smallest object that is not a bit-field (byte)".