class bad_alloc;Exception thrown on failure allocating memoryexceptionbad_alloc Type of the exceptions thrown by the standard definitions of operator new and operator new[] when they fail to allocate the requested storage space. This class is derived from exception. See the exception class for the member definitions of standard exceptions. Its member what returns a null-terminated character sequ..