Programming and Data Structures - GATE Practice

Time: 00:00:00
0
Attempted
28
Not Attempted
0
Marked For Review
0
Attempted & Reviewed

Question 1 of 28

What is printed by the print statements in the program P1 assuming call by reference parameter passing?

Program P1(){
  x = 10;
  y = 3;
  func1(y, x, x);
  print x;
  print y;
}

func1(x, y, z) {
  y = y + 4;
  z = x + y + z;
}
Select Your Answer:

All Questions

Attempted
Not Attempted
Marked for Review
Attempted & Reviewed
Current