Pergunta de entrevista da empresa Intel Corporation

Difference between call by value and call by reference

Resposta da entrevista

Sigiloso

7 de fev. de 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.