一个返回指针值函数的问题!请进看程序
程序是未了数组小于60的一组数,运用返回指针值。#include <stdio.h>
#include <conio.h>
int main ()
{
float score[][4]={{60,70,80,90},{56,89,67,88},{34,78,60,98}};
float *search(float (*pointer)[4],int m);
float *p;
int i,j;
for (i=0;i<3;i++)
{
p=search(score,i);
if(p==*(score+i))
{
printf("NO.%d scroes:",i);
for (j=0;j<4;j++)
printf("%5.2f",*(p+j));
printf("\n");
}
}
float *search(float (*pointer)[4],int m);
{
int i;
float (*pointer)[4];
float *pt;
pt=*(pointer);
for(i=0;i<4;i++)
if(*(*pointer+i)<60)
pt=*pointer;
return (pt);//就是这有错!!!!!!!
}
getch();
return 0;
}
请高手多多指教,请你