exit() is a system call which terminates current process. exit() is not an instruction of C language.
Whereas, return() is a C language instruction/statement and it returns from the current function (i.e. provides exit status to calling function and provides control back to the calling function).
exit() is a system call which terminates current process. exit() is not an instruction of C language.
Whereas, return() is a C language instruction/statement and it returns from the current function (i.e. provides exit status to calling function and provides control back to the calling function).
need an explanation for this answer? contact us directly to get an explanation for this answer