[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

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 ::

Post Your Answer Here:     

No Discussion on this question yet!