In the previous section you saw that some parameters could be used to return data from a function. These parameters were ref and out parameters. In addition to using parameters, each function can also return a value as the outcome of the function. This special value is known as the return value. When you declare the function you can specify the type of value you wish to return. As you saw earlier, functions that don't return a value are declared with the void keyword. To return a value from a function:
Tips
|