Pergunta de entrevista da empresa Optum

what is pass by value and pass by reference ?

Resposta da entrevista

Sigiloso

3 de out. de 2024

Pass by Value: A copy of the variable is passed to the function, so changes made inside the function do not affect the original variable. Pass by Reference: The actual variable is passed to the function, so changes made inside the function directly modify the original variable.