1.

Select the correct declaration of setjmp().(a) int setjmp(jmp_buf environment)(b) int setjmp(long_jmp environment)(c) int setjmp(jmp_buf )(d) int setjmp(long_jmp)I got this question in unit test.Question is taken from Non-Local Jumps in chapter C Library of C

Answer»

Correct answer is (a) INT SETJMP(jmp_buf ENVIRONMENT)

EXPLANATION: Declaration of the macro setjmp() is int setjmp(jmp_buf environment). ’environment’ is a the OBJECT of type jmp_buf.



Discussion

No Comment Found

Related InterviewSolutions