What is the difference between exit() and return() in C?

C Programming Language >   Function in C Language >   Predefined Functions  

Short Question

8867


Answer:

  • 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).


This Particular section is dedicated to Question & Answer only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.