Parameter Passing

 

Scalar parameters and string variables are passed by value to a function. i.e., the function receives a local copy of the argument. Series and arrays are passed by reference so a function can alter individual elements of the series or array.