Return Statement
The return statement is mainly used in function to return a value to the calling function. Return Statement may also be used to immediate exit from the function to the calling function with no returning a value, in which it appears
Syntax:
return;
or return(expression);
Here return is known as a keyword. This Return Statement can appear anywhere in the body of the function.
return 0: This statement returns zero to the operating system if the value entered by the user is 1 or negative.
return NULL: This statement returns NULL.