Initialize frequencies of all alphabets in freq array to 0. Find frequency of each character present in the string. Maximum occurring character in string is maximum occurring value in the freq array. Enter any string: I love Codeforwin. Maximum occurring character is ‘o’ = 3 times. Pankaj Prakash is the founder, editor and blogger at Codeforwin.
For More Information Please Refer:
You May Also Like to Read: