[教學] C#陣列宣告

語法:

方法一:
int[] i = { 0, 1 };
方法二:
int[] i0 = new int[] { 0, 1 };
方法三:
int[] i1 = new int[2];//預設為0

更改變數:

i[0] = 1;

留言