C doesn't have a native bool type in traditional C (pre-C99). Instead:
0 means falsenon-zero means true_Bool and <stdbool.h>Starting in C99, you can use the _Bool type. If you include <stdbool.h>, you can write:
bool – same as _Booltrue – defined as 1false – defined as 0You use boolean expressions in control structures like if, while, and logical operators:
&& – AND|| – OR! – NOT= with ==: if (x = 1) is assignment, not comparison!bool without including <stdbool.h>true or false are built-in without headersWhat will this print?
A. 0B. 1C. 5Hint: || returns 1 (true) if either side is non-zero.
Ask the AI if you need help understanding or want to dive deeper in any topic