Examveda

What is the purpose of the 'std::bad_alloc' class in C++ exception handling?

A. It represents errors related to dynamic memory allocation

B. It represents errors related to file handling

C. It represents errors related to string manipulation

D. It represents errors related to type conversion

Answer: Option A


Join The Discussion

Related Questions on Exception Handling in C plus plus

What is exception handling in C++?

A. A method to handle errors during runtime

B. A method to handle errors during compile time

C. A method to handle errors during linking

D. A method to handle errors during execution