View difference between Paste ID: BAgQMdWU and WEwuq8aF
SHOW: | | - or go back to the newest paste.
1-
int[] array1 = { 0, 0 };
1+
int[] array1 = { 0 };
2
int[] array2 = array1;
3
array1[0]++;
4
Console.WriteLine(array2[0]); // Prints 1