📚 Practice Mode
Programming and Data Structures - GATE Practice
Learn at your own pace with hints and detailed explanations
1 / 28
Multiple Choice
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;
}
- 10, 3
- 31, 3
- 27, 7
- None of the above