Can we use resume in error handling i.e. in the catch block

Answer Posted / mms zubeir

I believe the question is not properly formed, am I right?

The question could be: Can we resume the execution from
where the exception is thrown?

The answer can be Yes** and No*.

* - By using C++ try/catch mechanism we cannot resume back
because of the stack unwinding happens.

** - By using structured exception handling of Win32, we
can resume.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between overloading & overriding? give example.

565


Explain rethrowing exceptions with an example?

612


Are c and c++ different?

543


What is a pointer how and when is it used?

580


What does std :: flush do?

694






What gives the current position of the put pointer?

565


What is the history of c++?

561


Can we overload operator in c++?

555


Explain what is class definition in c++ ?

599


Explain the scope of resolution operator.

633


Comment on assignment operator in c++.

716


What is scope in c++ with example?

634


Is c++ pass by reference or value?

575


Where is atoi defined?

585


. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?

2763