Why Use Two-Dimensional Arrays?
While one-dimensional arrays allow data to be placed in an array one row at a time, two-dimensional arrays are capable of storing data in both rows and columns. To accomplish this, each row in a two-dimensional array is associated with the number of columns defined for the array. As with one-dimensional arrays, the entire array must contain elements of the same type. The type is defined when you declare the array. Because of the capability of storing data in rows and columns, it is obvious that two-dimensional arrays can provide more flexibility than one-dimensional arrays.