Abhishek KumarSoni wrote:ok pawel i got your point but are array of arrays and multidimensional array both different terms???
One of the differences of arrays of arrays versus a multidimensional array is that the array or arrays doesn't have to be a rectangle.
With a 2 dimensional array (provided by other languages, say C/C++), there are two indexes, say a row and column, and all the elements can be found with a row and column.
With arrays of arrays, you have an array with one index, say row, and each element in the array refers to another array. Each of these arrays, while also have an index, say column, can be of different sizes. For example, the first row may have four columns, while the second row may have only one column.... In your example, this is what happened after line 6.
Henry