Thursday, June 28, 2012

Jagged Arrays

Jagged array is an array of arrays. When declaring and initializing a jagged array, the size of the first array should be specified. But must not specify the sizes of the other arrays that are contained in this array.
string [][] _str = new string [10][];
_str[0] = new string [5];
_str[1] = new string [4];

No comments:

Post a Comment