#include<stdio.h>
int main()
{
float score[][4]={{70,70,50,90},{66,39,67,88},{34,78,90,66}};
float *search(float(*pointer)[4]);
float *p;
int i,j;
for(i=0;i<3;i++)
{
p=search(score+i);
if(p==*(score+i))
{
printf("No.%d score:",i);
for(j=0;j<4;j++)
printf("%8.2f",*(p+j));
printf("n");
}
}
return 0;
}
float *search(float(*pointer)[4])
{
int j=0;
float *pt;
pt=NULL;
for(;j<4;j++)
if(*(*pointer+j)<60) pt=*pointer;
return(pt);
}
最后
以上就是醉熏夏天最近收集整理的关于指针数组找出不及格的学生的课程及学号的全部内容,更多相关指针数组找出不及格内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复