I need to find the character that occurs the most in a string (not a char array). The user enters a string, and from there I thought I could use scanf, but I didn't find anything about scanf that says it could return the most used character. (ie. if someone enters "this is my str" then S would be the most used char).
Is there a function I'm not aware of that can do this, a better way of doing it, or not possible at all?