Effects of passing entire array call-by-reference

The values of the original array are: 1 2 3 4 5
The values of the modified array are: 2 4 6 8 10

Effects of passing array element call-by-value

a[3] before modifyElement: 8
value in modifyElement: 16
a[3] after modifyElement: 8