Just as in declaring a one-dimensional array, [ and ] are used to specify each dimension. array2D is declared using numeric literals for its two dimensions, as follows:
int array2D[4][5];
Using the constants that we already defined, we would declare array2D, as follows:
int array2D[size2D][size1D];
We could also use variables:
int rows = 4;
int cols = 5;
int array2D[rows][cols];
As with any array declaration using variables, the value of the variables may later change, but the array size is fixed and unchangeable after it is declared.