Question: Fix code in C only, no arrays allowed, does anybody know why whenever i try to run this it just shows 0's and says invalid

Fix code in C only, no arrays allowed, does anybody know why whenever i try to run this it just shows 0's and says invalid number of arguments when it should display the output numbers and take the average, max, min numbers? It should match the sample output in the picture on the bottom.  Fix code in C only, no arrays allowed, does anybody know
why whenever i try to run this it just shows 0's and
says invalid number of arguments when it should display the output numbers
and take the average, max, min numbers? It should match the sample
output in the picture on the bottom. s out edu 7 f

s out edu 7 f ca: findAverage (Int int): 8 t find Max (int int): 9 int findMin (int int) 10 int write Data (char int int) ll int main (int argc, char argv) 12 H 13 int arr int 15 arr (int )malloc (size sizeof (int)) 16 ir (lo Numbers (argv[1], arr, size) 0) 17 18 printf ("error"): 19 20 print Numbers (arr, size): 21 if (write Data (argv[2] arr, size) 1) 22 23 printf ("output written in output.txt' file"); 24 it (argc 2) 25 printt( invalid number of armuments passed. In 26 27 28 return o 300 int loadNumbers (char filename, int arr, int size) 31 t FILE. file tope (filename, "r") 33 if (file NULL) return 0; 35 36 while (!feof (file)) 38 int num: 39 fscanf (file, "id". 40 printf ("id", num) 41 43 if (count size) 46 47 return 49 void printNumbers (int arr, int size) O Type here to search o e a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!