Pass by Value | Pass by Reference |
Passes an argument by value. | Passes an argument by reference. |
Specifying the ByVal keyword. | Specifying the ByRef keyword. |
The procedure code does not have any access to the underlying element in the calling code. | The procedure code gives a direct reference to the programming element in the calling code. |
In this, you are sending a copy of the data. | In this, you are passing the memory address of the data that is stored. |
Changes does not affect the actual value. | Changes to the value effect the original data. |