edited by
558 views
1 votes
1 votes

What is printed by the print statements in the program $\text{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;
}
  1. $10, 3$
  2. $31, 3$
  3. $27, 7$
  4. $33, 5$
edited by

2 Answers

Answer:

Related questions

1 votes
1 votes
0 answers
4
soujanyareddy13 asked Apr 12, 2022
896 views
Match the following:$$\begin{array} {ll} \qquad \quad\textbf{List-I} & \qquad \quad \textbf{List-II} \\ \text{(P) Condition coverage} & \text{(1) Black-box testing} \\ \t...