1.

Which macro saves the current environment into the variable environment for later use by the function longjmp().(a) setjmp(b) longjmp(c) jmp(d) set_jmpThe question was posed to me in unit test.The origin of the question is Non-Local Jumps topic in chapter C Library of C

Answer» RIGHT choice is (a) SETJMP

Explanation: The setjmp() macro SAVES its CALLING environment in its jmp-buf argument to be used later by the LONGJMP() function.


Discussion

No Comment Found

Related InterviewSolutions