Code:
scanf(“%f”, &farry[fills])
Presumably you actually use straight double quotes in your code, like this: "
Code:
while (fills < *size && /* ... */
Presumably you actually use sizearr.
Code:
while(/* ... */ scanf(“%f”, &farry[fills]) !=EOF)
scanf() can return 0 if it failed (such as on "foo"), even though the end of the file has not necessarily been reached. It's best to use
Code:
scanf("%f", &farry[fills]) == 1
In fill_arr(), your use of sizearr is rather confusing. With this parameter, you pass the size of the array into the function, and you also pass out the number of items read. Perhaps a signature like this would be better:
Code:
int fill_arr(float farry[], int sizearr){
where you return the number of elements read. Just a thought.
Your add_arr() function assumes that there is at least one element in the array, which, while it might be a valid assumption, is simple to change. Just initialize sum to zero and have the for loop start at zero (count = 0) as well.