Why is a boolean 1 byte and not 1 bit of size?

In C++,

  • Why is a boolean 1 byte and not 1 bit of size?
  • Why aren’t there types like a 4-bit or 2-bit integers?

I’m missing out the above things when writing an emulator for a CPU

13 Answers
13

Leave a Comment