Change Password
Logout
Update Question
View
Question
<p> When is std::bad_alloc exception thrown?</p>
Option 1
<p>When new operator cannot allocate memory</p>
Option 2
<p>When alloc function fails</p>
Option 3
<p>When type requested for new operation is considered bad, this exception is thrown</p>
Option 4
<p>When delete operator cannot delete the allocated(corrupted)</p>
Correct Answer
Option 1
Option 2
Option 3
Option 4
Submit
Design and Developed by
O7Solutions