Google News
logo
CPP - Quiz(MCQ)
What is the difference between error and exception in C++?
A)
Both are the same
B)
Both can be handled during run-time
C)
Errors can be handled at the run-time but the exceptions cannot
D)
Exceptions can be handled at the run-time but the errors cannot

Correct Answer :   Exceptions can be handled at the run-time but the errors cannot


Explanation : Exceptions can be handled during run-time whereas errors cannot be because exceptions occur due to some unexpected conditions during run-time whereas about errors compiler is sure and tells about them during compile-time.

Advertisement