C examples for stdbool.h:__bool_true_false_are_defined
macro
C99 adds the header <stdbool.h>, which supports the _Bool data type. You can check __bool_true_false_are_defined flag to see if the bool is supported.
Macro | Expands To |
---|---|
bool | _Bool |
true | 1 |
false | 0 |
__bool_true_false_are_defined | 1 |
#include <stdio.h> #include <stdbool.h> int main()/* ww w.java2 s .co m*/ { printf("Hello World\n"); bool b = false; printf("%d",__bool_true_false_are_defined ); return 0; }