Explain how we implement exception handling in c++?



Explain how we implement exception handling in c++?..

Answer / Pratik Singh

In C++, exceptions are objects that represent exceptional conditions during program execution. To use exceptions, the code is enclosed in a try block. If an exception occurs inside the try block, it propagates up to the nearest catch block that can handle it. Multiple catch blocks can be used to handle different types of exceptions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What are the comments in c++?

1 Answers  


Is it possible for the objects to read and write themselves?

1 Answers  


When do you call copy constructors?

1 Answers  


What is Pure Virtual Function? Why and when it is used ?

10 Answers   Lucent, Sona,


What is the operator in c++?

1 Answers  


What is an html tag?

1 Answers  


Difference between strdup and strcpy?

1 Answers  


Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---

1 Answers  


What gives the current position of the put pointer?

1 Answers  


What is the role of copy constructor in copying of thrown objects?

1 Answers  


What is the equivalent of Pascal's Real a) unsigned int b) float c) char

1 Answers  


what is C++ objects?

1 Answers  


Categories