Returning a Value from a Function
So far we’ve looked at void functions, or function which execute, and exit – without returning something to the calling program/function. We’ve even looked at passing values to a function, but we often want to return a value from a function. A value-returning function will return a value back to the calling location. Think of…