C++ Exception Handling Question:
Download Job Interview Questions and Answers PDF
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
Answer:
c. Defining function with throw clause
Download C++ Exception Handling Interview Questions And Answers
PDF
Previous Question | Next Question |
We can prevent a function from throwing any exceptions. a. True b. False | Return type of uncaught_exception() is________________. a. int b. bool c. char * d. double |