Pass by Reference
we have to allocate space in Stack Memory, save address in register (and then clear stack)
so it is heavy if the value is small, use Call by Value and if these cases, use call by ref
- Does it have to change the value?
- Is object too big for passing?
Passing by value vs reference EXPLAINED
They say it's faster to pass by value vs reference. But why? Learn in this video.
https://www.youtube.com/watch?v=eLC87aQ16Dw


Seonglae Cho