Open In App

UGC-NET | UGC NET CS 2016 July – III | Question 42

When one object reference variable is assigned to another object reference variable then
(A) a copy of the object is created.
(B) a copy of the reference is created.
(C) a copy of the reference is not created.
(D) it is illegal to assign one object reference variable to another object reference variable.

Answer: (B)
Explanation: When one object reference variable is assigned to another object reference variable then a copy of the reference is created.
For more information Refer:References in C++
Option (B) is correct.
Quiz of this Question

Article Tags :