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.
0 comments: