I'm relatively new to C, and am not sure where to start with tackling this problem. I have to write a program that will read in a character string, and then print back the most commonly occurring character in the string, and how many times it has occurred. For example:
a man a plan a canal panama
The most frequently occurring character is 'a', and it occurs 10 times.
Any ideas on how I should approach this problem?