Question: C Language Please Write a function that takes an aray of integers and its size as in the array. In this question, the largest value

 C Language Please Write a function that takes an aray of

C Language Please

Write a function that takes an aray of integers and its size as in the array. In this question, the largest value and the second largest value cannot be the same, even if the largest value occurs multiple times. In the first sample, the two largest values are 9 and 8 (even though the value 9 appears twice). In the second sample. all the values are equal and the program recognizes this by printing a special message Array data 1 9 57 28 3194 Maximum value: 9 second largest value: 8 Array data Maximum value: 2 All the values are equal

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!