enter code here`I have a variable called curPos that stores two ints. I have a second variable prevPos that stores two ints.
So I have the following code
Console.WriteLine("{0}, {1}", curPos[0], curPos[1]); // 1, 25
Console.WriteLine("{0}, {1}", prevPos[0], prevPos[1]); // 1, 25
curPos[0]++;
Console.WriteLine("{0}, {1}", curPos[0], curPos[1]); // 2, 25
Console.WriteLine("{0}, {1}", prevPos[0], prevPos[1]); // 2, 25
how is this even possible and this is the exact code when I step line by line to the last line shown http://www.youtube.com/watch?v=qkPKm7xEhac&feature=youtu.be
curPosandprevPoscreated? They are referencing the same array.