How can I count the number of occurrences in c of each letter (ignoring case) in the string? So that it would print out letter: # number of occurences, I have c
letter: # number of occurences
//c code for count the occurence of each character in a string.
void main() { int i,j; int c[26],count=0; char a[]="shahid"; clrscr(); for(i=0;i<26;i++) { count=0; for(j=0;j