Home
Subscribe TechModgy to learn about new technologies!

When is std::bad_alloc exception thrown?

A. When new operator cannot allocate memory

B. When alloc function fails

C. When type requested for new operation is considered bad<  thisexception is thrown

D. When delete operator cannot delete teh allocated (corrupted) object

Please do not use chat terms. Example: avoid using "grt" instead of "great".