Which is the true statement with respect to the function longjmp()?
(a) the function where setjmp() was called has terminated, then the results are undefined
(b) the function where setjmp() was called has terminated, then the results are defined
(c) the function where jmp_buf was called has terminated, then the results are undefined
(d) the function where jmp_buf was called has terminated, then the results are defined
I got this question by my school principal while I was bunking the class.
My question comes from Non-Local Jumps topic in chapter C Library of C