O

Omkar Shekhavat • 1.09K Points
Master

Q. The return value of the following code is

Code:
Class1& test(Class1 obj)
{
Class1 *ptr = new Class1();
………
return ptr;
}
  • (A) object of Class1
  • (B) reference to ptr
  • (C) reference of Class1
  • (D) object pointed by ptr
  • Correct Answer - Option(B)
  • Views: 279
  • Filed under category C++

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics