Can anyone tell me? What is the difference between exit(0) and exit(1) in C language?
exit(0)
exit(1)
When the executable ends (exits) it returns a value to the shell that ran it. exit(0) usually indicates that all is well, whilst exit(1) indicates that something has gone amiss.