What is the purpose of the throw keyword in exception handling in C++? 

  • to propagate 
  • to hide 
  • to prevent 
  • to execute
In C++ exception handling, the throw keyword is used to signal the occurrence of an exception. When an error condition arises, using the throw keyword can help propagate the exception up the call stack until it's caught by an appropriate catch block.
Add your answer
Loading...

Leave a comment

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