Explain unexpected() function?
Submitted by: Administratorunexpected() is called when a function with an exception specification throws an exception of a type that is not listed in the exception specification for the function
A function declaration without a specification like throw(char*) may throw any type of exception, and one with throw() is not allowed to throw exceptions at all.
By default unexpected() calls terminate().
Submitted by: Administrator
A function declaration without a specification like throw(char*) may throw any type of exception, and one with throw() is not allowed to throw exceptions at all.
By default unexpected() calls terminate().
Submitted by: Administrator
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. |