Differentiate between pass by reference and pass by value?
Differentiate between pass by reference and pass by value?
Share
Passing by reference means the called functions’ parameter will be the same as the callers’ passed argument (not the value, but the identity – the variable itself).
Pass by value means the called functions’ parameter will be a copy of the callers’ passed argument.