Question: #include using namespace std; // function declaration: double getAverage (int arr [5]); int main () { //an int array with 5 elements. int balance [5]

 #include using namespace std; // function declaration: double getAverage (int arr

#include using namespace std; // function declaration: double getAverage (int arr [5]); int main () { //an int array with 5 elements. int balance [5] = (1000, 2, 3, 17, 50); double avg; //pass pointer to the array as an argument. avg = getAverage (balance) //output the returned value cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!