Predict The Output Of The Programp Pre Langcpp Cssfilehk1style #1143
Predict the output of the program.</p> <pre><code class="language-cpp"> 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; } </code></pre>
This multiple choice question (MCQ) is related to the book/course
gs gs111 OOP Object Oriented Programming Java.
It can also be found in
gs gs111 Assigning Object, Pointer to Objects, Passing and Returning Object - OOPs MCQ: Assigning Objects - Quiz No.1.