c program where the user enters a list of letter (ignoring lowercase and upper c
ID: 3617601 • Letter: C
Question
c program where the user enters a list of letter (ignoring lowercase and upper case, 'a' is the same as 'A') and the programreturns the number of occurences of that letter. for example, ifthe user types in GaaAAbbssaBgggGG the program returnsa = 5
b = 3
s = 2
g = 6
the next part of the program we have to sort the letters by themost frequently occuring to the least frequently occuring. which,in this case, would give us:
gabs
for the sorting we have to use the following functiondeclaration:
void sort(int frequency[], char letters[], int left, intright);