Explain.
what happens when a function is passed by reference?
Answers
Answer:
Pass-by-reference means to pass the reference of an argument in the calling function to the corresponding formal parameter of the called function. The called function can modify the value of the argument by using its reference passed in. The following example shows how arguments are passed by reference.
HOPE IT'S HELPFUL
Plz mark as BRAINLIEST.
Answer:
PASS BY REFERENCE:
-when the actual arguments and formal arguments are not different objects but the same ,the mechanism of passing is known as PASS BY REFERENCE ..
-whatever change happens is reflected in both function and main part of the program ..
-by the same object we mean that they represent the same box and any change made in the functions will be reflected in calling module..
-generally lists,dictionaries which are mutable datatypes are passed by reference ...
#hope it helps you
please mark brainliest