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
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include What language does google use? How do I download c++? what is multi-threading in C++? What is virtual methods? How is c++ different from java? Does dev c++ support c++ 11? What is the purpose of the "delete" operator? Explain virtual destructor? What is an accessor in c++? Can I uninstall microsoft c++ redistributable? What is the best c++ compiler? Can I have a reference as a data member of a class? If yes, then how do I initialise it? Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true. Which is the best c++ compiler for beginners?