1.

What is an exception in C++ program?(a) A problem that arises during the execution of a program(b) A problem that arises during compilation(c) Also known as the syntax error(d) Also known as semantic errorThe question was asked in an internship interview.My query is from Exception Handling topic in portion Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

The correct OPTION is (a) A PROBLEM that arises during the execution of a program

Explanation: An EXCEPTION is defined as the problem in C++ program that arises during the execution of the program for example DIVIDE by zero error.



Discussion

No Comment Found

Related InterviewSolutions