Question: Goal: Learn when an array parameter should be const. Assignment: Write the prototype of a function average that calculates the average value of an array
Goal: Learn when an array parameter should be const.
Assignment: Write the prototype of a function average that calculates the average value of an array of double values. The function takes two arguments and returns the average value:
The first argument is the array for which the average should be calculated.
The second argument is the size of the array.
Make sure that the array parameters that should not be modified are defined as const.
Write your code below
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
