Tuesday 24 July 2012

Passing Arguments to Function: Call by value & Call by Reference

We can pass arguments to a function by following two ways:

1)Call by Value

2)Call by Reference


1) Call by Value:

In Call by Value, only the values taken by the arguments are sent to the function. In call by value any changes made to the formal arguments do not cause any change to the actual arguments.


2) Call by Reference:

In Call by Reference, only the addresses taken by the arguments are sent to the function. In call by reference any changes made to the formal arguments cause changes to the actual arguments.
Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: