The return operator terminates the current function execution and returns control to the calling program. The expression calculation result is returned to the calling function. The expression can contain an assignment operator.
In functions with the void return type, the return operator without expression must be used:
The right brace of the function means implicit execution of the return operator without expression.