explain pass by value and pass by reference with suitable examples.
Answers
Answered by
2
Answer:
this is your answer
I hope this answer is right
Attachments:


Answered by
0
Answer:
pass by reference passing by reference means that the memory address of the variable (a point to the memory location) is passed to function this is unlike passing by value where the value of a variable is passing by value where the value of a variable is passed.
Explanation:
by definition pass by value means you are making a copy in memory of the actual parameter.......in pass by reference (also called pass by address) a copy of the address of the actual parameter is stored hope it help you please follow me
Similar questions