See here:If a parameter is passed by value, then a copy of the variable is passed to the function. Any changes that the function makes to the value of the variable are local changes that affect only the copy, not the variable itself.
If a parameter is passed by reference, then a reference to the variable is passed to the function. The function can change the value of the variable itself.
Answers
https://learn.microsoft.com/en-us/dynamics-nav/c-al-function-calls