C++ Call by Reference

In call by reference function, the action is performed over the actual value pass in the parameter. At the time of function call, we pass the address or reference of value. So that in the call by reference the actual value inside and outside the function of the program got affected.

 

Example

Output:

Leave a Comment