In C/C++, i of i is a constant pointer. In JAVA, instead, i of i is a variable, which points to a Array Object. When you call change_i(i), the value of i (not i itself) is passed into the methed, within which a new parameter variable i is created and assigned by the passed value.
This post has been archived. It cannot be replied.