Functions
Functions with more than one parameter
|
Functions can take more than one parameter. When you call the function, you must give the arguments in the same order as the parameters. Any optional parameters should be listed last. In the following example, when we call the function, we are passing it two arguments, which are the values stored in the variables named Note that it is the value stored in the variable that is passed to the function, not the variable itself. You cannot use the variable names |
|
Run the following code
The call site of a function or subroutine is the location (line of code) where the function is called. A call site is where zero or more arguments are passed to the function, and zero or more return values are received. In the lines of code above, |