Question: C programming brain teaser . I have the following function and as you can imagine compiling it with the file below it reads the data
C programming brain teaser. I have the following function and as you can imagine compiling it with the file below it reads the data file and ignores the comment. Now I want to write a function int read_something(FILE *fp, double *height, double *weight); that reads the file and store height and weight info into the arrays so it returns the number of data items actually stored in the arrays. and also another function int average( double *x, int N, double *d); where x is the data array, N is the number of data item. So the function computes the average and standard deviation which are stored into d[0] and d[1] respectively.


#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
