while ((i=fscanf(fp,"%f",&o))!=EOF)
{
size+=i;
t21=o*1e12;
t31=o*1e12;
}
fclose(fp);
In above case declare an Integer variable after the expression of loop
just like this
while ((i=fscanf(fp,"%f",&o))!=EOF)
{ int n = 0;
t21=o*1e12;
t31=o*1e12;
n++;
}
/* Here By taking n value you can count how many float variables passed through the
loop according to that value you can calculate the memory used for that operation. */