C++ | Exception Handling | Question 5
default exception After Exception
int exception After Exception
Explanation: The block catch(…) is used for catch all, when a data type of a thrown exception doesn’t match with any other catch block, the code inside catch(…) is executed.
Note that the implicit type conversion doesn’t happen when exceptions are caught. The character ‘a’ is not automatically converted to int.
Quiz of this Question