#include<stdio.h>
#define ROWS 10
#define COLS ROWS
#define NEXT ROWS
#define MORE ROWS
int main(int argc,char **argv)
{
int rows, cols, next, more, array[ROWS][COLS][NEXT][MORE];
for(rows = 0; rows< ROWS; rows++)
for(cols = 0; cols< COLS; cols++)
for(next = 0; next< NEXT; next++)
for(more = 0; more< MORE; more++)
array[rows][cols][next][more] = rows+cols+next+more;
for(rows = 0; rows< ROWS; rows++){
for(cols = 0; cols< COLS; cols++){
for(next = 0; next< NEXT; next++){
for(more = 0; more< MORE; more++)
printf("%4d ",array[rows][cols][next][more]);
printf("\n"

;
}
printf("\n"

;
}
printf("\n"

;
}
exit(0);
}
/**************************************************
this example show you a FOUR dimensional int array.
if you want do it by functions (out of 'main()') you
need knowledge about pointer and pointer of pointer
this is not really hard to do, i have no time for
this, above code is a 5 minutes work... the K+R
book is a good teacher, the question is, WHY you
(believe to) need more-dimensional arrays ??
I NEVER needed in the past 25 years, a more-C-dimensional
array... C works simpler, it can do all what you want
in a simple one-dimensional array. so re-think your
code, make it simpler, do not expect a compiler
will translate your complex code, please help him.
YOU, not the compiler, ARE INTELLIGENT; prouve it.

)
**************************************************/