In pass by value and result method, also copy of actual parameter is passed to the formal parameter.
At the end of the program, changes that have been made to the formal parameter have been copied to the actual parameter.
Formal parameters have possessed their own memory.
For example: Following is the example of the pass by value and result:
At the end of the program, changes that have been made to the formal parameter have been copied to the actual parameter.
Formal parameters have possessed their own memory.
For example: Following is the example of the pass by value and result:

No comments:
Post a Comment