void search(float (*pointer)[4],int n){
printf("成绩为");
float *m;
m = *(pointer + n) ;
for (int i = 0; i < 4; i ++){
printf("%f",(m+ i));
}
}
int main(int argc, const char * argv[]) {
float score[][4] = {{60,70,80,90},{56,89,67,88},{34,78,90,66}};
int n;
printf("输入查找的学生序号");
scanf("%d",&n);
search(score, n);
return 0;
}
为什么会报错control reaches end of non-void function