1.

Where are allocators used?(a) Allocation of memory(b) Deallocation of memory(c) Used for pointers(d) Both Allocation & Deallocation of memoryThis question was addressed to me by my college professor while I was bunking the class.My question is from Allocators in portion Algorithms, Objects & Iterators in C++ of C++

Answer»

Correct option is (d) Both ALLOCATION & Deallocation of memory

Easiest explanation - Allocators HANDLE all the request for allocation and deallocation of memory for the CONTAINER.



Discussion

No Comment Found

Related InterviewSolutions