CSharp - What is the output: Jagged Array Length?

Question

What is the output of the following code?

using System;
class Program
{
    static void Main(string[] args)
    {
        int[][] jaggedArray = new int[4][];
        jaggedArray[0] = new int[4] { 1, 2, 3, 4 };
        jaggedArray[1] = new int[6] { 5, 6, 7, 8, 9, 10 };
        jaggedArray[2] = new int[2] { 10, 20 };
        jaggedArray[3] = new int[3] { 3, 7, 15 };
        Console.WriteLine(jaggedArray.Length);
    }
}


Click to view the answer

4