Home / Object Oriented Programming / Difference between call by value and call by reference

Difference between call by value and call by reference

Difference between call by value and call by reference

Call by value Call by Reference
A copy of value is passed to function An address of value is passed to the function
Change made inside the function is not reflected on other functions Change made inside the function is reflected outside the function uses
Actual and format parameters created in different memory location. Actual and format parameters created name memory location.