What is the difference between exit() and return() in C?
Answer:
-exit() is a system call which terminates current process.
-exit() is not an instruction of C language.
-Whereas, return() is a C language instructions/statements and it returns from the current function (i.e. provides exit status to calling function and provides control back to the calling functions).