1.

Predict the output of the program. class A { public int i; }; void main() { A x; A y=x; x.i=10; y.i=20; y.i++; y.i=20; cout&l;<tx.i; }

A. 10
B. 20
C. 21
D. 0
Answer» C. 21


Discussion

No Comment Found