What do we need to do to pointer for overloading the subscript operator?
A. reference pointer
B. dereference pointer
C. store it in heap
D. None of the mentioned
Answer:A
What do we need to do to pointer for overloading the subscript operator?
A. reference pointer B. dereference pointer C. store it in heap D. None of the mentioned
Explanation:If you have a pointer to an object of some class type that overloads the subscript operator, you have to dereference that pointer in order to free the memory.