void findChars(char s[])
{
int count[128];
int l=strlen(s);
for(int i=0; i<128; i++)
count[i]=0;
for(int i=0; i<l; i++)
count[s[i]]++;
for(int i=0; i<128; i++) {
if(count[i]!=0)
printf("%c - %d\n", i, count[i]);
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment