Use multi-dimensional arrays. 

Arrays of more than one dimension can be used to arrange more complicated sets of data. Two-dimensional arrays are used quite often. For example, a spreadsheet can be thought of as 2-dimensional array (sometimes called a table.) The same variable name (that is, identifier) is used to access each element of the 2-dimensional array but the proper index position subscripts must be used. 
To declare an array of integers called studentGrades to be a 2-dimensional array with 3 rows and 4 columns, you would use the statement:

int studentGrades[3] [4];

where the first integer value is used to specify the number of rows in the array and the second value specifies the number of columns. I think of RC cola to remember that the number of rows must be specified first and the number of columns second. 
You can initialize the 2-dimensional array when you declare it by using commas and braces appropriately. For example,

int studentGrades[3] [4] = {
   { 1, 2, 3, 4},
   { 5, 6, 7, 8},
   { 9, 10, 11, 12}
   }; 
Be careful though when assigning values to a specific position within a 2-dimensional array. Keep in mind that just like one-dimensional arrays, the subscript positions with regard to the rows and the columns begin at 0, not 1. In the example above the value of the variable studentGrades[0] [2] is 3. 
