__bool_true_false_are_defined - C stdbool.h

C examples for stdbool.h:__bool_true_false_are_defined

Type

macro

Description

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.

MacroExpands To
bool _Bool
true 1
false0
__bool_true_false_are_defined1

Demo Code

    
#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;
}

Related Tutorials