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().
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *