When is std::bad_alloc exception thrown?

Question:When is std::bad_alloc exception thrown?

1.When new operator cannot allocate memory

2.When alloc function fails

3.When type requested for new operation is considered bad, thisexception is thrown

4.When delete operator cannot delete the allocated (corrupted) object


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!