1: /*
   2:  * Test of nested blocks.
   3:  */
   4: 
   5: int i;
   6: 
   7: main ()
   8: {
   9:     i = 3;
  10:     sub();
  11: }
  12: 
  13: sub ()
  14: {
  15:     int i, j;
  16: 
  17:     for (i = 1; i <= 10; i++) {
  18:     int j;
  19: 
  20:     j = j + i;
  21:     }
  22:     j = 0;
  23:     for (i = 11; i <= 20; i++) {
  24:     j = j + i;
  25:     }
  26: }
  27: 
  28: after ()
  29: {
  30:     int a;
  31: 
  32:     a = 3;
  33: }

Defined functions

after defined in line 28; never used
main defined in line 7; never used
sub defined in line 13; used 1 times
  • in line 10

Defined variables

i defined in line 5; used 10 times
Last modified: 1985-03-08
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 458
Valid CSS Valid XHTML 1.0 Strict