请高手指教一下
#include<stdio.h>
main()
{
static float score[][4]={{78, 89, 67, 78}, {98, 76, 87, 90}, {66, 88, 98, 86}};
float *search();
float *p;
int i, m;
printf("Please input the numbers of student:\n");
scanf("%d", &m);
printf("The scores of No.%d are :\n", m);
p = search(score, m);
for(i=0; i<4; i++)
printf("%5.2f\t", *(p+i));
}
float *search(pointer, n) //这里为什么不能这样:先定义全局变量int n;和float (*pointer)呢??
int n;
float (*pointer)[4];
{
float *pt;
pt = *(pointer+n-1);
return(pt);
}