1.

How many types of standard exception are there in c++?(a) 9(b) 5(c) 6(d) 7The question was posed to me in an interview.This interesting question is from Standard Exceptions in portion Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

Correct OPTION is (a) 9

The BEST EXPLANATION: There are nine standard exceptions in c++. They are bad_alloc, bad_cast, bad_exception, bad_function_call, bad_typeid, bad_weak_ptr, ios_base::failure, logic_error and runtime_error.



Discussion

No Comment Found

Related InterviewSolutions