function communicate with each other by passing argument.arguments can be passed is one of the two ways.
1. Call by value
2. Call by reference
The call by value method copies the value of the arguments into the formal parameter of the function.Changes made to the parameter within the function body have no effect on the arguments.
In call by reference the address of as argument is copied into the parameter.this means that changes made to the formal parameter affect the actual parameter.
1. Call by value
2. Call by reference
The call by value method copies the value of the arguments into the formal parameter of the function.Changes made to the parameter within the function body have no effect on the arguments.
In call by reference the address of as argument is copied into the parameter.this means that changes made to the formal parameter affect the actual parameter.
0 comments:
Post a Comment