Boolean
A piece of data that can only be true or false. It needs 1 bit, but almost always takes 1 byte.
Example
"Is the user online?" is a boolean. 1,000 loose booleans take about 1,000 bytes.
Test yourself: Boolean
Basic data types
How much memory does a boolean almost always take?
The smallest unit with an address is the byte. 1,000 loose booleans take about 1,000 bytes, not 125.
0/1
â–¶ Play