The return value of the following code is
Class1& test(Class1 obj)
{
Class1 *ptr = new Class1();
.........
return ptr;
}
Options
- object of Class1
- reference to ptr
- reference of Class1
- object pointed by ptr
CORRECT ANSWER : reference to ptr
Write your comments