16.07.2014, 03:51
Since nobody answered you what return means:
Formally
Simplified, it's a control structure that makes the function give back a value when it's called. If you have a function that always returns 1, and use the function to assign a value to a variable, it will be assigned 1 as the function returned that value. You can specify the function to return any value, or even variables, and even strings (conditioned)
Formally
Quote:
A return statement is a jump statement. It transfers control unconditionally to the end point of the call site in the stack frame. Returns either specify a value or expression, or are void. |