How is exception handling carried out in c++?

Answer Posted / achal ubbott

Exception handling is not a must of programming. But it is
a cleaner way of getting signal if something goes wrong in
the code. Prior to exceptions people used return values of
functions for reporting errors to application using the
classes inside libraries. The application would call some
function(defined inside class) from within try bock. Now if
something goes wrong then the function(defined inside the
class) would throw an exception. This exception is then
handled by catch block in the application.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class and object with example?

838


What are the benefits of oop?

885


Advantage and disadvantage of routing in telecom sector

1052


What is polymorphism oop?

841


What is the use of oops?

816


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4489


is there any choice in opting subjects like 4 out of 7

1947


Explain the concepts involved in Object Oriented programming.

891


can inline function declare in private part of class?

4005


what is different between oops and c++

2210


Can we define a class within the interface?

803


What are the three main types of variables?

844


Can an interface inherit a class?

802


program for insertion ,deletion,sorting in double link list

2460


What is abstraction oop?

843