1.

The delete operator __________________(a) Invokes function operator delete(b) Invokes function defined by user to delete(c) Invokes function defined in global scope to delete object(d) Doesn’t invoke any functionI have been asked this question in an international level competition.My query is from Delete Operator in portion Memory Allocation & Scope of Variable of Object Oriented Programming

Answer»

Right answer is (a) INVOKES function operator delete

Easiest explanation - The delete operator invokes the function operator delete. This function in TURN performs all the delete operations on the mentioned OBJECT. This is ensures safe deletion.



Discussion

No Comment Found

Related InterviewSolutions