/* Demo boolean value */ #include int main( int argc, char* argv[] ) { if ( 1 ) printf("value 1 is true\n"); else printf("value 1 is false\n"); if ( 0 ) printf("value 0 is true\n"); else printf("value 0 is false\n"); if ( 1.0 ) printf("value 1.0 is true\n"); else printf("value 1.0 is false\n"); if ( 0.0 ) printf("value 0.0 is true\n"); else printf("value 0.0 is false\n"); }