when you call a function like f(x) , the value that we give to function "x" have changed in what we program , to a new value that we called "f(x)" or "y" for example , or any thing else. it not different what return , its important what we need . in an if (condition) , if the condition be one its true and if condition was zero its false .
really good question "rina" Many operating systems test the return value. The normal convention is that an exit value of zero means the program ran successfully,while a non zero value means there is a problem.The use of return 0 will indicate that program was successfully executed