方式一:
#include <malloc.h>
#include <stdio.h>
void display(int a[3][2]){
}
int main(void)
{
int a[3][2];
a[0][0] =1;
a[0][1] =2;
a[1][0] =3;
a[1][1] = 4;
a[2][0] =5;
a[2][1] = 6;
display(a);
return 0;
}
方式二:
#include <malloc.h>
#include <stdio.h>
void display(int a[][2]){
}
int main(void)
{
int a[3][2];
a[0][0] =1;
a[0][1] =2;
a[1][0] =3;
a[1][1] = 4;
a[2][0] =5;
a[2][1] = 6;
display(a);
return 0;
}
方式三:
#include <malloc.h>
#include <stdio.h>
void display(int (*a)[2]){
}
int main(void)
{
int a[3][2];
a[0][0] =1;
a[0][1] =2;
a[1][0] =3;
a[1][1] = 4;
a[2][0] =5;
a[2][1] = 6;
display(a);
return 0;
}