Used to jump away from a particular location in a program into another function
The programmer written code, inside that function handles the exception
To test the occurrence of an exception the setjmp() functions is called up
Setjmp() saves the most recent event of the program before that statement in a buffer called jmp buff
As soon as the exception test is complete the setjmp() returns a value to the function
If the value returned from the setjmp() to the longjmp() is '0' it means that there was an exception condition
Now the program will start again from the same point where it stopped (saves in the buffer), until the exception condition is removed or repaired