Script started on Mon May 05 16:16:09 2003 Stremler> cat stack_fun.c int main( int argc, char **argv ) { char *s = "example"; printf("At start of our %s...\n",s); { int i = 100; printf("In first block, i is %d\n",i); } { int j; printf("In second block, j is %d\n",j); j = 2; } { int k; printf("In third block, k is %d\n",k); } return 0; } Stremler> gcc stack_fun.c Stremler> ./a.out At start of our example... In first block, i is 100 In second block, j is 100 In third block, k is 2 Stremler> ^D exit script done on Mon May 05 16:16:33 2003