学生分数中的最高分的相关问题

求学生分数中的最高分,并输出分数,学生和课程
为什么这个函数一定要返回一个值?怎么让这个程序正确输出?
--------------------Configuration: 1 - Win32 Debug--------------------
Compiling...
1.c
G:\最高分\1.c(29) : warning C4716: 'highest' : must return a value

1.obj - 0 error(s), 0 warning(s)

#include<stdio.h>
float score[2][5];
int r,c;
void main()
{
    float highest(float array[2][5]);
    int i,j;
    for(i=0;i<2;i++)
        for(j=0;j<5;j++)
            scanf("%f",&score[i][j]);
        highest(score);
        printf("%d %d",r,c);

}
float highest(float array[2][5])
{
    int i,j;
    float max;
    max=array[0][0];
    for(i=0;i<2;i++)
        for(j=0;j<5;j++)
            if(array[i][j]>max)
            {
                max=array[i][j];
                r=i+1;
                c=j+1;
            }
            printf("%f",max);
}

float highest(float array[2][5])这个地方定义了哈数的类型为返回值为float的函数,如果不想返回,可以改为:
void highest(float array[2][5])。