-
What is meant by exception specification?
-
- A catch can catch all types of exceptions
- A function can throw any type of exceptions
- A function is limited to throwing only a specified list of exceptions
- All of above
- None of these
Correct Option: C
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.