Google News
logo
CPP - Quiz(MCQ)
What do we need to do to pointer for overloading the subscript operator?
A)
reference pointer
B)
dereference pointer
C)
memory locator
D)
store it in heap

Correct Answer :   dereference pointer


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.

Advertisement