求大神帮忙看看这个程序错哪了?
#include<stdio.h>int main()
{
int score[][4]={{60,70,80,90},{56,89,67,88},{34,78,90,66}};
int *search(int (*pointer),int n);
int *p,i,j;
printf("enter the number of student:\n");
scanf("%d",&i);
printf("the score of no.%d are:\n",i);
p=search(score,i);
for(j=0;j<4;j++)
printf("%5d\t",*(p+i));
printf("\n");
return 0;
}
int *search(int (*pointer),int n)
{
int *pt;
pt=*(pointer+n);
return pt;
}