[Solved] How to return the integer with the lowest value that occurs the most frequently in an array?
[ad_1] I tinkered with your function, and separated the statistic gathering from its analysis, to make it easy to find the most frequent, but lowest, number. The 6 and 7 both occur twice. The 7’s bracket the 6’s in the number presented, but the function returns 6. #include <stdio.h> int getFreq(int arg) { int tmp; … Read more