Two Dimensional Arrays
13. Usual View of a 2D Array
Answer:
Yes
Usual View of a 2D Array
Usually you think of a 2D array as a table, not the complicated structure of the previous page. For example,
int[][] uneven = { { 1, 9, 4 }, { 0, 2}, { 0, 1, 2, 3, 4 } };
is usually thought of as like the table on the right. Only occasionally do you have to think of "arrays of references to 1D arrays."
Now consider how you would print out every element contained in array uneven
.
Question 13: