how can i pass 2d and 3d array by reference?
in the main function, i created 2 arrays, one is 2d array and another one is 3d, i want to pass thoes array to the function for some calculation. how can i write the function declaration??
Code:
int main(void)
{
char a[n][n][n];
int b[n][n];
someFunction(a, b);
}
someFunction( char* a[][], int* b[]){
//do some operation here
}
i dont know how to write the declaration of the function
i need to pass the whole 3d and 2d array to that function
how can i do it?
thanks for help!