1.

int a =1 , b=2; a=chg(b) ; cout << a << b ; If the function chg is coded as int chg(int &x) {x = 10;return ();} then 34.What will be the output of the following program?

A. It results in compile-time error
B. It results in run time error
C. It prints 1 1 2
D. It prints 1 1 10
Answer» B. It results in run time error


Discussion

No Comment Found