- exit() is a function that are able to terminate the running program.
-It is predefined in process.h header file
-Here value is 0,1,2,3,4,...
Use of exit() function:
-In programming, if you want to terminate your program at certain point then you use this function.
printf("After exit function")
-In this program, only "Inside main" is display because when execution goes on exit() function then program is exit or close or terminate so that next line will not execute.