Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4
When you pass by reference the function take the value of the argument. if change its value in that function, the value will be changed. However when you do not pass it by the reference, any change that you do with that argument inside of your function will not change the value when the function is over, because the function takes the copy of the argument and deletes it when the function is over so the real argument is not changed.
15th Oct 2016, 9:41 AM
Lara
Lara - avatar