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
Ans: B
{
Class1 *ptr = new Class1();
.........
return ptr;
}
A. object of Class1
B. reference to ptr
C. reference of Class1
D. object pointed by ptr
Ans: B
0 comments:
Post a Comment