+ 1
Why does a bool take 8 bits of size when it only needs 1?
3 Respuestas
+ 1
However, if you want to use 8 bools in a byte, you can simply use a mask and work with bit operators...
0
Because the address counts memory spaces in bytes, not bits, so the minimum size for any variable is 1 byte or 8 bits.
0
The C++ standard requires every type to take at least 1 byte.