Duplicate of how to find mode in c programming. Thread closed.