Question d’entretien chez JPMorganChase

What is the difference between a pass by Variable and Pass by reference

Réponse à la question d'entretien

Utilisateur anonyme

9 mai 2018

Trick question: a variable is a reference. Pass by VALUE is when the contents of the variable are passed. Pass by reference is when the memory address of the data is passed. It's the difference between giving you my house and giving you my address, respectively.