#include<stdio.h>
void fill(float *av,int *max,int *i,FILE *p,int n)
{
while(!feof(p))
{
*av+=n;
if(*max<n)
*max=n;
(*i)++;
}
*av=(n)/(*i);
fclose(p);
}
the call is{
p=fopen(fn,"r");
fill(&av,&max,&i,p,n);
fclose(p);
}
the message in the description keeps popping up.I tried changing almost everything, but nothing seems to work.i'd really appreciate it if you show me your guidance,for i'm a total beginner, started a month ago!!