Skip to content
Related Articles
Open in App
Not now

Related Articles

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

Improve Article
Save Article
  • Last Updated : 26 Apr, 2018
Improve Article
Save Article

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

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!