5 ms·
I need some context… why?
by azhenley 1y ago
I need some context… why?
- huflungdung 1y ago[dead]
- dale_glass 1y agoIt says it right there: "Note: The ByteBool, WordBool, and LongBool types exist to provide compatibility with other languages and operating system libraries."
- beyondCritics 1y agoTurns out that old versions of Visual C++ used their own typedef of bool as int: https://stackoverflow.com/questions/4897844/is-sizeofbool-defined-in-the-c-language-standard https://stackoverflow.com/questions/4897844/is-sizeofbool-de...
- bobmcnamara 1y agoThere were risc platforms with int sized bool, usually where one byte math wasn't in the instruction set.
- bobmcnamara 1y agoIn C, sizeof(bool) is implementation specific. Typical values are sizeof(char) and sizeof(int).
- keketi 1y agoIn case you need a lot more than two boolean values some day.