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

Ans: A

No comments:

Post a Comment

The advantages of Outsourcing Web Development Services

In the present digital world, acquiring a solid web presence is essential for companies to flourish. A well designed site is much much more ...