A

Admin • 833K Points
Coach

Q. When is std::bad_alloc exception thrown?

  • (A) When delete operator cannot delete the allocated (corrupted) object
  • (B) When type requested for new operation is considered bad, thisexception is thrown
  • (C) When alloc function fails
  • (D) When new operator cannot allocate memory
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category C++
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.