Question 10977 – GATE 2005-IT
November 7, 2023
Question 9946 – Computer-Organization
November 7, 2023
Question 10977 – GATE 2005-IT
November 7, 2023
Question 9946 – Computer-Organization
November 7, 2023

Programming

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. 
A
Theory Explanation.
Correct Answer: A

Leave a Reply

Your email address will not be published. Required fields are marked *