#include <stdio.h>
unsigned char arr2D_0[2][3] = {{1,2,3},{4,5,6}};
unsigned char arr2D_1[2][3] = {{7,8,9},{10,11,12}};
unsigned char arr3D_0[2][2][3] = {{{1,2,3},{4,5,6}}, {{7,8,9},{10,11,12}}};
unsigned char arr3D_1[2][2][3] = {{{13,14,15},{16,17,18}}, {{19,20,21},{22,23,24}}};
unsigned char (*pArr2D[3])[2] = {arr2D_0, arr2D_1};
unsigned char ((*pArr3D[2])[3])[2]= {arr3D_0, arr3D_1};
int main(void) {
// your code goes here
unsigned char i, j, k, l;
unsigned char (*Arr2D)[3];
unsigned char (*Arr3D)[2][3];
for(i=0; i<2; i++)
{
Arr2D = pArr2D[i];
for(j=0; j<2; j++)
for(k=0; k<3; k++)
}
for(i=0; i<2; i++)
{
Arr3D = pArr3D[i];
for(j=0; j<2; j++)
for(k=0; k<2; k++)
for(l=0; l<3; l++)
printf("%d, ", Arr3D
[j
][k
][l
]); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CnVuc2lnbmVkIGNoYXIgYXJyMkRfMFsyXVszXSA9IHt7MSwyLDN9LHs0LDUsNn19Owp1bnNpZ25lZCBjaGFyIGFycjJEXzFbMl1bM10gPSB7ezcsOCw5fSx7MTAsMTEsMTJ9fTsKdW5zaWduZWQgY2hhciBhcnIzRF8wWzJdWzJdWzNdID0ge3t7MSwyLDN9LHs0LDUsNn19LCB7ezcsOCw5fSx7MTAsMTEsMTJ9fX07CnVuc2lnbmVkIGNoYXIgYXJyM0RfMVsyXVsyXVszXSA9IHt7ezEzLDE0LDE1fSx7MTYsMTcsMTh9fSwge3sxOSwyMCwyMX0sezIyLDIzLDI0fX19Owp1bnNpZ25lZCBjaGFyICgqcEFycjJEWzNdKVsyXSA9IHthcnIyRF8wLCBhcnIyRF8xfTsKdW5zaWduZWQgY2hhciAoKCpwQXJyM0RbMl0pWzNdKVsyXT0ge2FycjNEXzAsIGFycjNEXzF9OwppbnQgbWFpbih2b2lkKSB7CgkvLyB5b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