You can't use the whole array as a pointer - a pointer can point at only one memory location. You want to do something like this i believe :
Code:
#include <stdio.h>
void myfunc(int *myp);
int main(void) {
int myarray[5][5];
myarray[0][0]=999;
myarray[0][1]=223;
myarray[0][2]=534;
// Pass a pointer to the first position in your 2d array
myfunc(&myarray[0][0]);
return 1;
}
void myfunc(int *myp) {
// display the integer at that location and
// at an integer's worth of memory after that etc.
printf("%d %d %d",*myp, *(myp+1), *(myp+2));
}
Does this help?
Almosthere