#include /* This illustrates why one should always use braces to indicate blocks * in case of nested "if" statements. */ int main( int nargs, const char *arg[] ) { int a = 1, b = 0; /* this does not do what the indentation suggests */ if( a ) if( b ) printf( "version 1: a and b \n" ); else printf( "version 1: not a \n" ); /* this is probably what was meant */ if( a ) { if( b ) printf( "version 2: a and b \n" ); } else printf( "version 2: not a \n" ); return 0; }