In pass by value, only copy of actual parameter is passed to the formal parameter. When changes have been made to formal parameters then it does not affect the actual parameter value. It will remain the same. The formal parameters have their own memory to store the parameters.
For example: Following is the example of pass by value:
For example: Following is the example of pass by value:

No comments:
Post a Comment