-
What do we need to do to pointer for overloading the subscript operator?
-
- store it in heap
- reference pointer
- dereference pointer
- All of above
- None of these
Correct Option: C
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.