Moving on to three dimensions, we would declare array3D using numeric literals, as follows:
int array3D[3][4][5];
Using the constants already defined, we would declarearray3D, as follows:
int array3D[size3D][size2D][size1D];
We could also use variables:
int x = 5;
int y = 4;
int z = 3
int array3D[z][y][x];
Note how the z dimension (the highest order) comes first and the x dimension (the lowest order) comes last in the declaration.