CHARBIT
CHARBIT is a term used to describe the number of bits used to represent a character in a computer system. In formal C and C++ terminology, the precise reference is the macro named CHAR_BIT, defined in the standard header limits.h. CHAR_BIT specifies the number of bits in a byte as used by the language, i.e., the number of bits in the char type. The value is implementation-defined but generally at least 8; on most modern systems it is 8, while some historical or specialized architectures have used 7, 9, or more bits per byte.
In practice, CHAR_BIT is used to calculate the total number of bits in a given type by
Limitations and considerations: CHAR_BIT reflects the chip’s byte size, not the width of a machine word. Code
See also: CHAR_MAX, CHAR_MIN, limits.h, and related macros for integral types.