What is catch block in exception handling?


Warning: Trying to access array offset on false in /home3/indiakep/public_html/wp-content/plugins/dw-question-answer/inc/Template.php on line 8
All QuestionsCategory: Cpp LanguageWhat is catch block in exception handling?
Chetan Shidling asked 6 years ago

I need short information.

1 Answers
chetan shidling answered 6 years ago
  1. The block that catches an exception thrown in the try block is called a catch block.
  2. A catch block specifies the type of exception it can catch and contain the code for handling the exception.