Difference between pass by value and pass by reference?
Saturday, December 31, 2022
Add Comment
Question: Difference between pass by value and pass by reference?
In the pass by value method, a copy of the value of the original variable is passed to the function or method. In the pass by reference method a reference to the original variable is passed to the function or method. The changes made to the variable within the function or method will be reflected in the original variable.
0 Komentar
Post a Comment