How many times can the macro setjmp() return?

Ngô Thị Vân

New member
How many times can the macro setjmp() return?
A. one time
B. two times
C. three times
D. many times
 
Answer: b
Explanation: setjmp() macro returns twice. First time, setjmp() returns zero on its direct invocation. Second time macro returns when longjmp is called with the information written to the environment; now, it returns the value passed to longjmp as second argument.
 

Tìm kiếm

Back
Top