// short routine to illustrate an example in class involving scope // BE CAREFUL -- trickiness ensues. // // Try to predict the output before running the program #include int main() { printf("\nStarting Program\n"); { int x = 5; printf("x = %d\n", x); { int x = 8; printf("x = %d\n", x); } printf("x = %d\n", x); { x = 3; } printf("x = %d\n", x); } }