c-solutions
                                
                                 c-solutions copied to clipboard
                                
                                    c-solutions copied to clipboard
                            
                            
                            
                        Chapter 9 Exercise 10 small corrections required
a) The wrong name of the array is used in the function; instead of n[ i ] it should be a[ i ].
b) I think the type of function of double would work better for computing the average instead of type int; double average() instead of int average(). Correct me if I am wrong.
c) On line 6, it should be a[ i ] instead of a[ n ].