adplus-dvertising
CPP 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 : Option (C) :   catch(…)

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