Disallowing object creation on heap

Object of a class can be created dynamically on heap or statically on Stack or Data Area. If we have a class MyClass, then the below […]

Out of memory condition in C++ for new operator

How will you handle a situation if new operator is not able to allocate memory on heap to your program? In C language malloc returns […]