0
5.1kviews
Explain call by value and call by reference with necessary example
1 Answer
0
190views

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   { …

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.