0
5.1kviews
Explain call by value and call by reference with necessary example
1 Answer
| written 9.3 years ago by |
Call by value
In call by value mechanism, the called function creates a new set of variables in stack and copies the values of the arguments into them. Example: Program showing the Call by Value mechanism.
Call by value source code
1
2 void swap(int x, int y)
3 { …