Pergunta de entrevista da empresa SolarWinds

what is the difference between call by reference and call by parameter.

Resposta da entrevista

Sigiloso

4 de jun. de 2024

In Call by Value, any changes made to the function argument do not affect the passed parameter because the value of the parameter is copied. In Call by Reference, changes to the function's argument are reflected in the passed parameter.