Effects of passing entire array call-by-reference:

The values of the original array are:
01234
The values of the modified array are:
02468


Effects of passing array element call-by-value:

The value of a[3] is 6
Value in modifyElement is 12
The value of a[3] is 6