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
What is stream and its types in c++?
Explain some examples of operator overloading?
If all is successful, what should main return a) 0 b) 1 c) void
Refer to a name of class or function that is defined within a namespace?
Are vectors faster than arrays?
What is the difference between public and private data members?
How many ways can a variable be initialized into in C++?
When we use Abstract Class and when we use Interface?where we will implement in real time?
How did c++ start?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
What are the syntactic rules to be avoid ambiguity in multiple inheritance?
What is the use of endl in c++?
How does a C++ structure differ from a C++ class?
What do the keywords volatile and mean mutable?
What is the full form of c++?