Friday 16 December 2011

30.Which of the following is the correct output of the C#.NET code snippet given below?

int[][] a = new int[2][];
    a[0] = n ew int[4]{6, 1, 4, 3};
    a[1] = new int[3]{9, 2, 7};
    Console.WriteLine(a[1].GetUpperBound(0));
A.3   
B.4
C.7
D.9
E.2       
Answer: Option E