Intel Corporation interview question

Difference between call by value and call by reference

Interview Answer

Anonymous

7 Feb 2018

Call by value passes arguments to a function by copying them. Call by reference passes arguments to a function via a reference or pointer that refers to the original value directly. Thus call by reference can modify the callee's argument, but call by value cannot. Call by value also imposes a overhead as arguments must be copied.