[0]
In computer programming, a return statement causes execution to leave the
current subroutine and resume at the point in the code immediately after the
instruction which called the subroutine, known as its return address. Return
statements in many languages allow a function to specify a return value to be
passed back to the code that called the function.
[1]
The return statement returns the flow of the execution to the function from
where it is called. This statement does not mandatorily need any conditional
statements. As soon as the statement is executed, the flow of the program
stops immediately and returns the control from where it was called. The return
statement may or may not return anything for a void function, but for a
non-void function, a return value must be returned.