Answers

Question and Answer:

  Home  C++ Exception Handling

⟩ How can we restrict a function to throw certain exceptions? a. Defining multiple try and catch block inside a function b. Defining generic function within try block c. Defining function with throw clause d. It is not possible in CPP to restrict a function

c. Defining function with throw clause

 166 views

More Questions for you: