Question 10977 – GATE 2005-IT
November 7, 2023Question 9946 – Computer-Organization
November 7, 2023Programming
|
Question 27
|
What will be the output of the following program assuming that parameter passing is
- (i) call by value
(ii) call by reference
(iii) call by copy restore
procedure P{x, y, z};
begin y:y+1; z: x+x end;
begin
a:= b:= 3;
P(a+b, a, a);
Print(a)
end.
|
Theory Explanation.
|
Correct Answer: A
