Jagged arrays, namely arrays of arrays is basically similar to a regular dimensional array, which is not hard to understand. But here within a jagged array, there is another array, which is kind of a bit vague to me.

here is a jagged array with a two dimensional array:


int [][,] jagged = new int [3][,];

// so there are three rows

|---------| // row 0;
|---------|

|---------| // row 1;
|---------|

|---------| // row 2;
|---------|

// When we assign jagged [0] a reference to a 4 x 2 array.

jagged [0] = int new [4,2];

// Does it mean that we assign four columns to the row 0?

|---------| |---------| |---------| |---------|
|---------| |---------| |---------| |---------|

// and within each row, there are two more rows?

|--0----1---| |--0----1---| |--0----1---| |--0----1---|
|------0----| |-------1----| |-----2-----| |------3-----|

// So when we assign value to jagged [0][1,0] = 10;
// Does it mean that we access to the second column, which is 1 of the row 0 and
// assign the value 10 to the second row of 1, which is above the column named 1
// 0 and 1, and we assign the 10 to 1, not 0?