so I'm working on this code,in which I'm trying to pass a two dimensional array to a function ,like so:
function signature : void f(array[4][4],int n);
int array [4][4];
f(&array[0][0],16)
for (int i=0;i<n;i++) // I'm working by c99 standard.
{
hist[ *(&array[0][0] +i) ] ++ ; // I know the max value in array[4][4] , and hist is initialized accordingly.
}
}
I just keep getting all kinds of errors regarding incompatible types , for example , I get "expected (*)[4] but type is of int * help ? :)