Question: What is the output of the C Program? #include double getAverage(int arr[], int size) { int i; double a; double s= 0; for (i

 What is the output of the C Program? #include double getAverage(int arr[], int size) { int i; double a; 

What is the output of the C Program? #include double getAverage(int arr[], int size) { int i; double a; double s= 0; for (i = 0; i < size; ++i) { S += arr[i]; } } a = s / --i; return a; } int main() { int b [5] = Select one {100, 1, 2, 3, 4}; double a ; a = getAverage ( b, 5); printf( "%f", a ); return 0;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The C program provided in the image has a function getAverage which is intended to calculate the ave... View full answer

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 Programming Questions!