Below is my code snippet.I'm getting "Error:initialization from incompatible pointer type" error on line 'int *q = status;'.
Obviously, I'm missing something but has no clue...:(
Could someone please help me resolve this ?
void findwalls(int *p,int y,int x){
int status[y_count][x_count][4];
int *q = status;
for(int i = 0;i < (y_count * x_count * 4);i++)
*(q + i) = *(p + i);
Thanks!