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, this exception is thrown
D. When delete operator cannot delete teh allocated (corrupteD. object
Answer:A
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, this exception is thrown D. When delete operator cannot delete teh allocated (corrupteD. object