1.

The void longjmp( jmp-buf env, int val) function causes setjmp() macro to return _______ value; if val is 0.(a) zero(b) one(c) null(d) no returnI have been asked this question in an online interview.My doubt is from Non-Local Jumps in division C Library of C

Answer»

The correct choice is (b) one

The EXPLANATION is: The longjmp() function cannot CAUSE the setjmp() to return value zero,if the VARIABLE VAL is zero. It always return one when the value of val is 0.



Discussion

No Comment Found

Related InterviewSolutions