Interview Questions: Call by reference and call by value
A common simple interview question is to explain the difference between “call by value” and “call by reference”. This refers to the way arguments are passed to functions. In call by value, a copy of the argument is made and given to the function so that any changes made to the argument affect only the …
Continue reading ‘Interview Questions: Call by reference and call by value’ »