new, operator new, Placement new, delete
New operator: C++ supports dynamic allocation of objects using the new operator. This operator allocate memory for object from a pool call free store.The new operator calls the special function operator new. 1. We can allocate the memory for any data type. e.g int *p = new int; 2. We can also initialize the memory using new operator. e.g int *p = new int(50); 3. We can allocate the memory for array using new operator. e.g int *p = new int[10]; If enough memory is not available in the free store to allocate, the new request indicates failure by throwing an exception of type std::bad_alloc and new operator returns a pointer. e.g #include <iostream> #include <new> int main() { try { while (true) { new int[100000000ul]; } } catch (const std::bad_alloc& e) { std::cout << "A...