5 private static int[] array = {0, 1, 2, 3};
7 private static int [,] bar = { {0,1}, {4,5}, {10,20} };
9 static string [] names = {
10 "Miguel", "Paolo", "Dietmar", "Dick", "Ravi"
13 public static int Main ()
15 int [] i = new int [4] { 0, 1, 2, 3 };
17 int [,] j = new int [4,2] { {0,1}, {2,3}, {4,5}, {6,7} };
19 int [] a = { 4, 5, 6, 7 };
21 int [,,] m = new int [2,3,2] {{{0,1}, {2,3}, {4,5}}, {{6,7}, {8,9}, {10,11}}};
24 int [] k = new int [] { foo, foo+1, foo+4 };
26 int [,] boo = new int [,] {{foo, foo+10}, {foo+3, foo+10}};
28 float [] f_array = new float [] { 1.23F, 4.5F, 6.24F };
30 double [] double_arr = new double [] { 34.4567, 90.1226, 54.9823 };
39 for (int t = 0; t < 4; ++t) {
59 if (f_array [0] != 1.23F)
62 if (double_arr [1] != 90.1226)
65 foreach (string s in names)
66 Console.WriteLine ("Hello, " + s);
68 if (names [0] != "Miguel")
73 int [] x = new int [count];
75 for (int idx = 0; idx < count; idx++)
78 for (int idx = count; idx > 0; ){
80 if (x [idx] != idx + 1)
83 Console.WriteLine ("Array initialization test okay.");