Bool
Appearance
Bool is primitive data type holding 2 possible values: true or false.
Disadvantages
The data type bool allocates 8 bits of memory, but only one bit is needed, this is wasteful.
Alternatives
Bit fields
Bool is primitive data type holding 2 possible values: true or false.
The data type bool allocates 8 bits of memory, but only one bit is needed, this is wasteful.
Bit fields