Question d’entretien chez Intel Corporation

Difference between call by value and call by reference

Réponse à la question d'entretien

Utilisateur anonyme

7 févr. 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.