Accenture interview question

What is call by value and call by reference in C Programming language?

Interview Answer

Anonymous

23 Oct 2024

Call by value: You pass a copy of the variable's value to the function. Changes made inside the function don't affect the original variable. Call by reference: You pass the memory address of the variable to the function. Changes made inside the function affect the original variable.