Here,I have try to explain the difference between call by value and call by reference.
call by value:The process of passing values of the variable from the calling function to the called function is called call by value.Any change made to the format argument doesn't affect actual argument.
call by reference:The process of passing memory address of variable from calling function to the called function is called call by reference.any Change made to formal argument affect the actual argument.Pointers are used to pass the address.
Thank you!!!