A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. Assume that the program ‘P’ is implementing parameter passing with ‘call by reference’. What will be printed by following print statements in P?

Program P()
{
x = 10;
y = 3;
funb (y, x, x)
print x;
print y;
}
funb (x, y, z)
{
y = y + 4;
z = x + y + z;
}
a. 10, 7
b. 31, 3
c. 10, 3
d. 31, 7
Answer:31, 3
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: