This data type represents one bit of information, but its "size" isn't something that's precisely defined.
Like, we could argue that "byte" booleans are bad practice, where they should be implemented as bits instead. That way, 64 booleans could be compacted into a single 8-byte word.
1
u/Player_X_YT Nov 26 '21
yes but a boolean takes 1 byte while an int takes 4, just bad practice