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
Submitted by: Administratorc. Defining function with throw clause
Submitted by:
Submitted by:
Read Online C++ Exception Handling Job Interview Questions And Answers
Top C++ Exception Handling Questions
☺ | How to implement exception handling in C++? |
☺ | Explain unexpected() function? |
☺ | Explain terminate() function? |
☺ | Explain benefits of Exception Handling? |
☺ | What is Asynchronous Exceptions? |
Top C Plus Plus Language Categories
☺ | C++ Pointers & Functions Interview Questions. |
☺ | C++ Operator Overloading Interview Questions. |
☺ | C++ Exception Handling Interview Questions. |
☺ | C++ Virtual Functions Interview Questions. |
☺ | C++ Template Interview Questions. |