posted 18 years ago
Additional sets of brackets following an array identifier (but prior to the semicolon) add dimensions to the array. For example...
int[][] a, b, c[];
...declares a and b as 2-dimensional arrays, and c as a 3-dimensional array.
Furthermore, in the following example...
int d[][], e;
...d is a 2-dimensional int array (an object), but e is simply an int (a primitive).
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org