Write a function double averageint arr int n that returns


Write a function double average(int arr[] , int n), that returns the average of the even elements of the array. If the array has no even elements, throw an integer-based exception containing the value 0. The number of elements in the array is specified by the parameter n. (in C++)

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write a function double averageint arr int n that returns
Reference No:- TGS02741853

Now Priced at $10 (50% Discount)

Recommended (91%)

Rated (4.3/5)