A function uses an exception specification that includes only int,but an exception of type double is thrown.A catch block is provided that catches a double,so things proceed properly.
Correct Answer:
Verified
Q1: A function declared thus: void func(argument_list)throw();should throw
Q2: Compilers will check code in functions against
Q4: The default action of unexpected()can be changed.
Q5: When an event occurs that cannot be
Q6: An exception is signaled or raised with
Q7: Mentioning a base class B in an
Q8: A circumstance in C++ where an exception
Q9: The exception specification for a function has
Q10: If an exception is thrown in a
Q11: In C++ an exception object must be
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents