C++ Programming :: Exception Handling - Discussion
Home > C++ Programming > Exception Handling > MCQs Questions Discussion
7 / 8
Choose the correct option.
When is std::bad_alloc exception thrown?
AWhen new operator cannot allocate memory
BWhen alloc function fails
CWhen type requested for new operation is considered bad, thisexception is thrown
DWhen delete operator cannot delete teh allocated (corrupted) object
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!