InterviewSolution
Saved Bookmarks
| 1. |
Which of the given statement is not true with respect to void longjmp( jmp-buf env, int val)?(a) The variable value cannot be zero(b) env is the object containing information to restore the environment at the jmp_buf’s calling point(c) This function does not return any value(d) This function restores the environment saved by the most recent call to setjmp() macroThe question was asked in unit test.My doubt stems from Non-Local Jumps in portion C Library of C |
|
Answer» CORRECT OPTION is (b) env is the object containing information to restore the environment at the jmp_buf’s calling point To explain: In the FUNCTION VOID LONGJMP( jmp-buf env, int val), env is the object containing information to restore the environment at the setjmp’s calling point. |
|