Which keyword is used to catch exceptions in C++? 

  • handle 
  • rescue 
  • catch 
  • secure
In C++, the catch keyword is used to define a block of statements that will be executed when a particular exception is thrown. This block is used to handle the exception and provide a response, ensuring that the program can continue or terminate gracefully.
Add your answer
Loading...

Leave a comment

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