1.

The new operator _________________(a) Invokes function operator new(b) Doesn’t invoke function operator new(c) Invokes function operator only if required(d) Can’t invoke function operator new implicitlyThis question was addressed to me in class test.The above asked question is from New Operator in division Memory Allocation & Scope of Variable of Object Oriented Programming

Answer»

The correct choice is (a) INVOKES FUNCTION operator NEW

The best I can explain: The new operator invokes function operator new. This is done to allocate the storage to an object. ::operator new is CALLED for storage allocation implicitly.



Discussion

No Comment Found

Related InterviewSolutions