In pass by reference changing the values of formal parameters will change the values in actual parameters. Give the reason.
Answers
Answered by
0
Explanation:
In call by reference, original value is modified because we pass reference (address). Here, address of the value is passed in the function, so actual and formal arguments shares the same address space. Hence, value changed inside the function, is reflected inside as well as outside the function.
Similar questions