Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Declaring and using jagged array (Array of Arrays) in C#

You can declare and use jagged array like below,
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;

namespace ForgetCode
{   
    public class MainClass
    {
        public static void Main()
        {
            //General declaration
            int[][] numbers = new int[2][] { new int[] { 2, 3, 4 }, new int[] { 5, 6, 7, 8, 9 } };

            //Omitting the size
            int[][] numbers2 = new int[][] { new int[] { 2, 3, 4 }, new int[] { 5, 6, 7, 8, 9 } };

            // Direct usage of new inside the array
            int[][] numbers3 = { new int[] { 2, 3, 4 }, new int[] { 5, 6, 7, 8, 9 } };
        }
    }
}