If an exception is thrown and not caught anywhere in the program, function _______ is called.
- exit()
- main()
- terminate()
- throw()
If an exception is thrown but not caught anywhere in the program, the special function terminate() is called in C++. By default, terminate() ends the program. However, a programmer can change the function that gets called by using set_terminate().
Loading...
Related Quiz
- Which operator will give the remainder of a division operation?
- What is a potential risk of using recursion?
- You are designing a complex numerical algorithm with multiple cooperating classes that need to share internal data for efficiency. How might the friend keyword be used effectively in this context?
- A _______ is a smart pointer that owns and manages another object through a pointer and disposes of that object when the _______ goes out of scope.
- Which function is used to get the position of the file pointer in a file?