the question is "vs".
and no body has pointed to important point.
in passing with values, additional memory is occupied to store the passed variable values.
while
in passing with reference, no additional memory is occupied for the values. (memory efficient in circumstances).
↧
Answer by sifr_dot_in for What's the difference between passing by reference vs. passing by value?
↧