# include <stdio.h>
# include <string.h>
void main()
{
int i=0,max=-1,maxi=-1;
char a[1000];
int c[256]={0};
strcpy(a,"This is a simple TEST. There ARE numbers and other symbols 1&2&3");
for(i=0;i<(int)strlen(a);i++)
{
if(a[i]>='A'&&a[i]<='Z')
c[a[i]+32]++;
else if(a[i]>='a'&&a[i]<='z')
c[a[i]]++;
}
for(i='a';i<='z';i++)
{
if(c[i]>max)
{
max=c[i];
maxi=i;
}
}
printf ("%c %d\n",maxi,max);
}
# include <string.h>
void main()
{
int i=0,max=-1,maxi=-1;
char a[1000];
int c[256]={0};
strcpy(a,"This is a simple TEST. There ARE numbers and other symbols 1&2&3");
for(i=0;i<(int)strlen(a);i++)
{
if(a[i]>='A'&&a[i]<='Z')
c[a[i]+32]++;
else if(a[i]>='a'&&a[i]<='z')
c[a[i]]++;
}
for(i='a';i<='z';i++)
{
if(c[i]>max)
{
max=c[i];
maxi=i;
}
}
printf ("%c %d\n",maxi,max);
}