setjmp() and longjmp() Functions in C Library
Question: What are setjmp() and longjmp() Functions in Standard C Library. Explain with Examples When to Use them Answer: ‘setjmp()’ and ‘longjmp()’ functions provide a powerful mechanism similar to ‘goto’ but not restricted to just current function. This mechanism is useful in situations where there’s a deeply nested function calls and when error gets detected, … Read more