true - C stdbool.h

C examples for stdbool.h:true

Type

macro

Description

Boolean type constant true value

MacroExpands To
bool _Bool
true 1
false0
__bool_true_false_are_defined1

Demo Code

       


#include <stdio.h>
#include <stdbool.h>
int main()/*  www.j ava  2s.c o m*/
{
    printf("Hello World\n");
    bool b = true;
    printf("%d",b);
    return 0;
}

Related Tutorials