Sail E0 Webinar
Question

What is meant by exception specification?


Options:
A .  A function is limited to throwing only a specified list of exceptions.
B .  A catch can catch all types of exceptions.
C .  A function can throw any type of exceptions.
D .  none of the mentioned
Answer: Option A

C++ provides a mechanism to ensure that a given function is limited to throwing only a specified 

list of exceptions. It is called as exception specification.



Was this answer helpful ?

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers