#include <stdio.h>
int *search(int (*pointer)[5], int n)
{
int *ptr;
ptr = *(pointer + n);
return (ptr);
}
int main() {
int score[][5] = {(60, 70, 80, 90, 87), (57, 59, 50, 56, 78), (56, 78, 56, 34, 78)};
int *search(int (*pointer)[5], int n);
int *p, i, m;
scanf("%d", &m);
printf("序号%d的学生的成绩为:\n", m);
p = search(score, m);
for (i = 0; i < 5; i++)
printf("%3d\t", *(p + i));
printf("\n");
return 0;
}
标签:search,int,56,信息管理,学生,printf,pointer,78
From: https://blog.51cto.com/u_16030624/7401581