Home / Questions / What is the difference between exit() and return() in C?
Explanatory Question

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

👁 8,702 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

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