编译以下程序时出现错误,谁能告诉我为什么编译器会给出这样的错误?
`#include <stdio.h>
void display(int **,int,int);
int main ()
{
int a[3][4]={1,2,3,4,5,6,7,8,9,0,1,6};
display(a,3,4);
return 0;
}
void display(int **a,int b,int c){
}
编译时出错
` ptr.c: In function ‘main’:
ptr.c:6:1: warning: passing argument 1 of ‘display’ from incompatible pointer type [enabled by default]
ptr.c:2:6: note: expected ‘int **’ but argument is of type ‘int (*)[4]’ `