GlobalLogic interview question

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

Interview Answer

Anonymous

21 Nov 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