1.

Which operator is used to allocate the memory?(a) =(b) +(c) new(d) freeI have been asked this question in an interview.I need to ask this question from Allocators topic in section Algorithms, Objects & Iterators in C++ of C++

Answer» CORRECT OPTION is (c) new

To EXPLAIN I would say: The default allocator uses operator new to allocate memory.


Discussion

No Comment Found

Related InterviewSolutions