Which among the following is true?

Which among the following is true?
A. The pointer to object can hold address only
B. The pointer can hold value of any type
C. The pointer can hold only void reference
D. The pointer can’t hold any value
 
Answer: a
Explanation: The pointer to an object can hold only the addresses. Address of any other object of same class. This allows the programmer to link more than one objects if required.
 

Tìm kiếm

Back
Top