Exception Handling

Explain the exception handling features of C++ program with a suitable example

Questions by AZEEMJ

Showing Answers 1 - 0 of 0 Answers

prakash77

  • May 21st, 2010
 

C++ has some speical handlers for exception while at run time, they are
try......catch.
try.....catch....finally.
try....throw....catch.

When in above 3 cases, exception which is generated caught by CATCH part and print some information about that exception.

try
{
code that may create exception
}
catch (Exception e)
{
}
finally
{
user code to be printed after exception
}

Note: we can have multiple catch().

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions