Briefly explain how try, catch and throw work together to provide C++ exception handling.

      

Briefly explain how try, catch and throw work together to provide C++ exception handling.

  

Answers


Davis
try,catch and throw work together like this: put all statement that you wish to monitor for exceptions within a try block.If an exception occurs, throw that exception using throw and handle it with a corresponding catch statement.
Githiari answered the question on February 5, 2018 at 12:14


Next: Discuss hardware factors for choosing an operating system?
Previous: What purpose do the terminate() and unexpected() elements serve in a C++ computer program?

View More Computer Studies Questions and Answers | Return to Questions Index


Exams With Marking Schemes

Related Questions