A jagged array is an array of arrays such that member arrays can be of different sizes. The elements of Jagged array are reference types and initialized to null by default. A jagged array can also be mixed with multidimensional arrays.
Syntax of the jagged Arrays:
data_type[][] Array_Name = new data_type[rows][]
In Jagged arrays, the user has to provide the number of rows only.
A jagged array is an array of arrays such that member arrays can be of different sizes. The elements of Jagged array are reference types and initialized to null by default. A jagged array can also be mixed with multidimensional arrays.
Syntax of the jagged Arrays:
In Jagged arrays, the user has to provide the number of rows only.
need an explanation for this answer? contact us directly to get an explanation for this answer