call by value and call by reference is used in functions to pass the arguments.
What is the difference between call by value and call by reference in c++ ????
Collapse
X
-
Call by value means that the value is copied on the call. The called function operates on the copy. All calls in C are call by value.
Call by reference means the value is not copied on the call. The function operates on the original value. The function argument is a reference argument making the name of the value in the function call an alias for the original value. C++ can use call by reference by using reference arguments in the function.Comment
Comment