真的很难理解
#include <stdio.h>
#include <stdlib.h>
int main()
{
double score[][4]={{60.0,70.0,80.5,90.5},{54.0,59.0,61.0,62.0},{75.5,76.0,85.0,89.0}};
double *search(double(*pointer)[4],int);
double *p;
int i,m;
printf("please enter the number of student:");
scanf("%d",&m);
m=m-1;
printf("the scores of NO.%d are:",m);
p=search(score,m);
for(i=0;i<4;i++){
printf("%5.2f \t,",*(p+i));
}
printf("\n");
return 0;
}
double *search(double(*pointer)[4],int n)
{
double *pt;
pt = *(pointer +n);
return pt;
}