previous | index | next

Multidimensional Arrays

To process the table, iterate through the rows, and for each row, iterate through the columns:

  const int SIZE = 10;
  int table[SIZE][SIZE];
    
  for(int row = 0; row < SIZE; row++) {
      for(int col = 0; col < SIZE; col++) {
          ... process ...
      }
  }


previous | index | next