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; 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
The C program provided in the image has a function getAverage which is intended to calculate the ave... View full answer
Get step-by-step solutions from verified subject matter experts
