Vidyalelo
C++ Programming · Q20

Exception Handling in C++

Programming · C++ Programming · question 20

Q20

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

A.
It represents errors related to dynamic memory allocation
Answer
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

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board