I am having problem in this situation
typedef struct {
...
} str;
str *matrix[SIZE][SIZE][SIZE];
for (i = ...) {
for (j = ...) {
for (k = ...) {
matrix[i][j][k] = (str *)malloc(NUM * sizeof(str));
}
}
}
and successfully get access to this 3D array by
( (matrix[i][j][k])[n] ) // in n-th element.
My question is ,how can I pass this 3D array of pointers (to struct str) in a function in my program?