4 ms·
> "isn't that just an int, not an array of ints?" A two-dimensional (int[x][y] not int[]...[2]...[]) "array of" int isn't really a array of ints either - it's
by a1369209993 3y ago
> "isn't that just an int, not an array of ints?"
A two-dimensional (int[x][y] not int[]...[2]...[]) "array of" int isn't really a array of ints either - it's a array of arrays of int. So a zero-dimensional "array of" int is a int.
I'd call the last one ambiguous: it's either a group of (dimensions that are zero), or a (group of dimensions) that is [of group size] zero, and the text doesn't provide enough information to know which without context, just like "I read books." when you don't whether someone's talking about their hobbies or what they did over the summer.