Question: Write a C function maximumCount which should return the number of times that the global maximum appears in the array list. The function prototype is

 Write a C function maximumCount which should return the number of

Write a C function maximumCount which should return the number of times that the global maximum appears in the array list. The function prototype is shown as follows. int maximumCount(int list[], int length); The global maximum is defined to be the number in the array with the maximum value. For example, in the list (9,7, 2,5, 3,9, 2, 3, 4, 9) the global maximum is 9 and it appears 3 times. The maximumCount function returns 3 in this case. Assume that list has at least one element, maximumCount function should be called in the following main function and the output of this main is shown in the following output int main(void) Int arrit - 19., 2, 5, 3, 9, 2, 3, 4, 9) int result result - maximumCounter, 10: printf("Global maximum repeated d timean", result return 0; Global maximum is repeated 3 times

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!