GATEverse
← GATE CSE 1996

Q19

MCQMarks unknown

Consider the following program in pseudo-Pascal syntax. What is printed by the program if parameter aa in procedure test1\text{test1} is passed as program Example (input, output) var b: integer; procedure test2: begin b:=10; end procedure test1 (a:integer): begin a:=5; writeln ('point 1: ', a, b); test2; writeln ('point 2: ', a, b); end begin (*Example*) b:=3; test1(b); writeln('point3: ', b); end

Sign in to save attempts.

Loading…