I have the following function
void initBoard(int * board[BOARD_ROWS][BOARD_COLS]){
int z = 0;
for( z = 0; z<10; z+=1){
int l;
for( l = 0; l<10; l+=1){
board[z][l] = 0;
}
}
}
and from main i call it like
int plBoard[10][10];
initBoard(&pcBoard);
when compiling it works but i get a warning saying: warning: passing argument 1 of 'initBoard' from incompatible pointer type. array is an integer and and function expects a int pointer i am passing the address of int. What is wrong with it?