In computer programming, when a piece of data is passed to a function or method, there are two main ways in which it can be passed: pass by value and pass by reference.
Pass by Value
In pass by value, the value of the argument is passed to the functi...