GlobalLogic Interview Question

What is the difference between pass by value and pass by reference?

Interview Answer

Anonymous

Nov 21, 2025

I told her that in Pass by reference both the varible ar pointed to same memory location even they have different variable name, everywhere that value is changed if we change of those variabe. while in pass by value a copy is created .

1
GlobalLogic Interview Question: What is the difference between pass by value and pass by reference? | Glassdoor