Can anyone tell me? What is the difference between exit(0) and exit(1) in C language?
exit(0)
exit(1)
exit(0) indicates that the program terminated without errors. exit(1) indicates that there were an error.
You can use different values other than 1 to differentiate between different kind of errors.
1