|
|
is that a good book? |
does that second array mean how many columns there are? |
int sqrs[10][2]
is an array of ten arrays of two ints each. The first array of two ints is initialized with {1, 1)
, the second array of two ints is initialized with {2, 4}
, and so on. When describing an array of X arrays of Y something, people often view it as a matrix with X as the number of rows and Y as the number of columns. |
no, not at all. |