in reply to i need help in difference

the expression returned by the exit is the 'exit status' which will be read (and maybe dealt with) by whoever is executing the code and recieves it (shell, eval ...).

different exit statuses can be useful for figuring which kind of error occured in the program.

Enjoy,
Mickey