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

If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

0 Answers  


What is the difference between c++ and turbo c++?

0 Answers  


Given a simple program designed to take inputs of integers from 1-1000 and to output the factorial value of that number, how would you test this program? You do not have access to the code. Please be as specific as possible.

4 Answers   Microsoft,


Describe Trees using C++ with an example.

0 Answers  


Name the debugging methods that are used to solve problems?

0 Answers  






Which operator cannot overload?

0 Answers  


How do you establish an is-a relationship?

0 Answers  


Mention the storage classes in c++.

0 Answers  


What is the difference between strcpy() and strncpy()?

0 Answers  


What are the different operators in C++?

3 Answers   HP,


What is the use of main function in c++?

0 Answers  


Mention the purpose of istream class?

0 Answers  


Categories