References to object are same as pointers of object.

References to object are same as pointers of object.
A. True
B. False
 
Answer: b
Explanation: The references are made to object when the object is created and initialized with another object without calling any constructor. But the object pointer must be declared explicitly using * symbol that will be capable of storing some address. Hence both are different.
 

Tìm kiếm

Back
Top