Passing by reference is used if a parameter's data flow is two-way, into and out of the function.
C. two-way, into and out of the function.
Explanation:
If a function in programming language passing the parameter by reference means it only sending the address of parameter to a function. If any value is changed on reference parameter it will changed original value.
If parameter passed by value means it is one way, where value been send to the function.
Whereas by reference means it two-way, in and out of the function. Mostly it called as pointer.
It is available in c , c++, where declare of variable “*” or “&” address off.