What is meant by exception specification?
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:A
What is meant by exception specification?
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
Explanation: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.