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:- TGS02740335

Now Priced at $10 (50% Discount)

Recommended (93%)

Rated (4.5/5)