Google News
logo
CPP - Quiz(MCQ)
What id the syntax for catching any type of exceptions?
A)
catch(Exception e)
B)
catch(Exception ALL)
C)
catch(…)
D)
catch(ALL)

Correct Answer :   catch(…)


Explanation : catch(…) is used in C++ to catch all types of exceptions in a single catch block.

Advertisement