Campbell Ritchie wrote:You are correct about the notion of assignment, but don’t say reference. You have an int, which is an array of primitives. The contents of a variable pointing to a primitive is not a reference. It is the actual value. If you write int i = 2; the actual value in the memory location pointed to by i is 2.
I think the OP used the terms "refering" and "reference" in regards to an int (elements of int) -- and in that context, "reference" is correct.