Functions
Functions
By:-
Dr. Vani Kapoor Nijhawan
Assistant Professor, VIPS
Functions: Definition & Advantages
Function Declaration
Function Call
Function Definition // body define
In call by value, the values of the function arguments are passed during
function call while in call by reference, the reference/address of the function
arguments are passed during function call.
In call by value, changes are made to the local copies of the arguments, while
in call by reference, changes are made at the address values.
In call by value, old values are retained. In call by reference, old values are
updated with new values.
In call by value, changes are temporary but in call by reference, changes
made are permanent.