1.

What are the operators available in C++ for dynamic allocation and de-allocation of memories?(a) new(b) delete(c) compare(d) both new & deleteI have been asked this question in an internship interview.My enquiry is from Resource Management topic in chapter Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

Right CHOICE is (d) both new & delete

Easy explanation - new and delete operators are MAINLY used to allocate and deallocate during RUNTIME.



Discussion

No Comment Found

Related InterviewSolutions