3 ms·
C is an extremely conservative language. You don't even get booleans unless you're in C99 and import it.
by insanitybit 4y ago
C is an extremely conservative language. You don't even get booleans unless you're in C99 and import it.
- int_19h 4y agoYou do get them without #include <stdbool.h>, you'll just have to contend with ugly spellings like _Bool and _True.
- anjbe 4y agobool, true, and false as native keywords are on track to show up in C23. https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2393.pdf https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2393.pdf