// Demonstration of difference between ANSI and Cfront rules // for binding references. Program prints "Cfront" when compiled // with Cfront rules, and "ANSI" when compiled by ANSI rules. #include int i=3; main() { // Loop that declares a variable i which is 5 upon exit. for( int i=0; i<10; i++ ) { continue; } switch( i ) { case 3: // Must be referring to global i. cout << "ANSI\n"; break; case 10: // Must be referring to i declared in for loop. cout << "Cfront\n"; break; } }