Sail E0 Webinar
Question

What do we need to do to pointer for overloading the subscript operator?


Options:
A .  reference pointer
B .  dereference pointer
C .  store it in heap
D .  None of the mentioned
Answer: Option B

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.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers