Start by looking at the values in the
score
array, and the size of the
entry
value.
Add this code at the start of the function:
printf("%d\n",&entry);
for(i=0;i<entry;i++)>
{
printf("%f\n",&score[i]);
}
If that all looks good, use the debugger to follow your code through and look at what exactly happens in your loops.