Capgemini Interview Question

what is the difference between call by reference and call by value ?

Interview Answer

Anonymous

Mar 23, 2019

in call by value we pass the value of actual parameter and if we do any changes it does not any effect on actual parameter .whereas in call by reference we pass a common refence or we can say address which in turn show the effect of any changes that we do to the formal parameter.