posted 16 years ago
After declaring a type, any subsequent identifiers on that line can add array dimensions, provided that the brackets indicating the additional dimensions come after the associated identifier. For example...
int[][]a, b, c[];
In the above declaration, a and b are both declared as 2-dimensional arrays, while c adds a dimension for a 3-dimensional array.
Now consider this...
int d[][], e;
Here, d is a 2-dimensional array (an object), while e is a primitive int.
"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