Q:

WHAT IS THE DIFFERENCE BETWEEN EXIT() AND RETURN() IN C?

belongs to collection: C INTERVIEW QUESTIONS AND ANSWERS

0

WHAT IS THE DIFFERENCE BETWEEN EXIT() AND RETURN() IN C?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this 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).

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C INTERVIEW QUESTIONS AND ANSWERS

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
WHAT IS THE USE OF “#DEFINE” IN C?... >>
<< WHAT IS EXIT() FUNCTION IN C?...