1: program varparam(input, output);
   2: var i : integer;
   3: 
   4: procedure p(var i : integer);
   5: begin
   6:     i := 3;
   7:     writeln('end of p');
   8: end;
   9: 
  10: procedure q(var i : integer);
  11: var j : integer;
  12: begin
  13:     p(i);
  14:     writeln('end of q');
  15: end;
  16: 
  17: begin
  18:     q(i);
  19:     writeln('end of test, i = ', i:1);
  20: end.
Last modified: 1984-04-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1423
Valid CSS Valid XHTML 1.0 Strict