Question: Write the prototype of a C function that takes two parameters first one is an array of integers, and a second one is integer indicating

Write the prototype of a C function that takes two parameters first one is an array of integers, and a second one is integer indicating the size of the array. The function should be called countMax. Write the prototype of a C function that takes two parameters

Write the prototype of a C function that takes two parameters first one is an array of integers, and a second one is integer indicating the size of the array. The function should be called countMax. countMax The function should count how many times the maximum value of elements repeats itself. Sample Input: Array contains {20, 40, 15, 20, 40, 15, 40, 20} Sample output: The value returned is 3 (output explanation: because 40 (max value) occurs three times in the array) Sample Input: Array contains (40, 34, 20, 70, and 40}, Sample output: The value returned is 1 (output explanation: because 70 (max value) occurs once in the array) Part a) Provide at least two sample input and output [4 marks] Part b) provide the declaration for at least three functions: input(), working() and output() [4 marks] Partc) provide the definition for at least three functions: input(), working() and output()- [8 marks] Part d) provide the calling for at least three functions: input(), working and output() [4 marks]

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!