Examveda

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

A. It represents errors detected during runtime

B. It represents errors detected during compile time

C. It represents logical errors in the code

D. It represents memory allocation errors

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