Hey guys, learning about multi-dimensional arrays and am tracing a code that my teacher gave us, but I'm failing to see or conceptualize it.
for instance: Why does the following code output 3?
int a[2][4][2] = {16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1};
cout << a[1][2][1] << endl; //output is 3
How are the dimensions created? I am trying to draw it on paper, but it becomes convoluted and I get confused. Could someone offer clarify this array for me? Thanks for your guys' help.