Professional Documents
Culture Documents
Call by Value
Call by Value
Call by Value
&
CALL BY REFERNCE
THERE ARE TWO WAYS IN WHICH WE CAN
PASS ARGUMENTS TO THE FUNCTION
CALL BY
VALUE
In call by value method, the value of the actual parameters is
copied into the formal parameters. In other words, we can say
that the value of the variable is used in the function call in the
call by value method.
In call by value method, we can not modify the value of the
actual parameter by the formal parameter.
•The formal parameters are Ordinary •The formal parameters are pointer variable.
variables.
•Several results can be sent back to the
•Atmost only one values can be sent back to calling function.
the calling function.
•Actual parameters are affected by Changes •Direct changes are made to the Actual
made within the function. parameters.