where are longjmp and setjmp used in c-setjmp and


Where are longjmp and setjmp used in C++?

-Setjmp and longjmp must not be used in C++.

- Longjmp jumps out of the function without unwinding stack. This means that local objects generated aren't destructed properly.

- The better option is to use try/throw/catch instead. They properly destruct local objects.

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: where are longjmp and setjmp used in c-setjmp and
Reference No:- TGS0354919

Expected delivery within 24 Hours