What is the difference between Call by Value and Call by Reference?
Difference Between Call By Value And Call By Reference
Collapse
X
-
Call by value essentially means that a copy of the variable is p***ed into the function. The function does not modify the original variable if it writes to the function input variable. P*** by reference means that essentially the variable itself is p***ed. Writes to the function input variable apply also to the original variable, and no copy of the variable is made when calling the function.Comment
Comment