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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / hendry

yes,we can use

Is This Answer Correct ?    4 Yes 1 No

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

Answer / s.murali krishnan

No.

The Exception can only handled using the catch block
the error CANNOT be handled.

Is This Answer Correct ?    1 Yes 0 No

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

Answer / shiva

no can not using resume in c++

Is This Answer Correct ?    1 Yes 0 No

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

Answer / neema

resume() can be used only with threads

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C++ General Interview Questions

write a program to insert an element into an array

26 Answers   TCS,


What language does google use?

0 Answers  


Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.

0 Answers   Nucleus, TCS,


What is the difference between reference type and pointers.

4 Answers   HCL,


What is the keyword auto for?

0 Answers  






What are associate containers?

0 Answers  


What are the types of pointer?

0 Answers  


In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....

0 Answers   College School Exams Tests, CS,


What is virtual destructor ans explain its use?

0 Answers  


What is the default access level?

0 Answers  


What is enum c++?

0 Answers  


What is binary search in c++?

0 Answers  


Categories