c-solutions icon indicating copy to clipboard operation
c-solutions copied to clipboard

Chapter 9 Exercise 10 small corrections required

Open Stareczhory opened this issue 5 years ago • 0 comments

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 ].

Stareczhory avatar Aug 22 '20 12:08 Stareczhory