Arrays

  • An array is ordered and homogenous ( every value within the array must share the same data type)

Multidimensional arrays

2D Array

ROW x COLUMN

int table[MAX_ROWS][MAX_COLS] = {
  {0 ,1, 2 },
  {3, 4, 5},
  ....
}

3 Arrays

int table[TABLES][ROWS][COLS];

table[0] -> 2d array
table[1] -> 2d array
table[2] -> 2d array


Written on October 25, 2017