Question: return 0 vs exit 0
what is the difference between return 0 and exit 0 in c? i could not find any difference in their behaviour (both terminates the process execution) in a program.
Difference between return and exit in C
A return is an instruction of the language that returns from a function call while exit is a system call (not a language statement) that terminates the current process.
thanks for your quick response.
let it be system call or language instruction.is there any difference between their behaviour in a program.because both are used to terminate a program.please restrict the answer to return 0 and exit(0).thanks in advance.