|
|
|
|
|
by _kst_
2249 days ago
|
|
In C and C++, a char is by definition a byte. A byte is CHAR_BIT bits, where CHAR_BIT is required to be at least 8 (and is exactly 8 for the vast majority of implementations). The word "byte" is commonly used to mean exactly 8 bits, but C and C++ don't define it that way. If you want to refer to exactly 8 bits without ambiguity, that's an "octet". |
|
The devil is always in the details, and the devil is very, very annoying...