+ 1

what is the difference between call by value and call by reference in methods?

6th Sep 2016, 12:37 PM
Simrah Mahmood
1 Odpowiedź
+ 1
Call by value: the function manipulates a variable that is a copy of the variable entered as parameter. Call by reference: the function directly manipulates the variable passed, which means that any change made will persist after the call.
6th Sep 2016, 2:15 PM
Zen
Zen - avatar