Home » C++ Programming » Exception Handling » Question
  1. What is meant by exception specification?
    1. A catch can catch all types of exceptions
    2. A function can throw any type of exceptions
    3. A function is limited to throwing only a specified list of exceptions
    4. All of above
    5. 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.



Your comments will be displayed only after manual approval.