1.

For objects that are not of class type ______________(a) Global delete operator is invoked(b) Local delete operator is invoked(c) Global user defined function is invoked(d) Local function to delete object is calledI got this question in homework.My doubt stems from Delete Operator topic in portion Memory Allocation & Scope of Variable of Object Oriented Programming

Answer»

The correct option is (a) Global delete OPERATOR is invoked

The best I can explain: The global delete operator is called to delete the objects that are not of class TYPE. Class type INCLUDES class, union or struct. All objects of these types can be DELETED using the global delete operator.



Discussion

No Comment Found

Related InterviewSolutions