Code:#include<stdio.h> #include<conio.h> #define N 50 void main() { char str[N+1]="aabccbbdds"; char ch; int i=0; int count[26]={0}; clrscr(); while((ch=str[i])!='\0') { count[ch-'a']++; i++; } for(i=0;i<26;i++) { if(count[i]) { printf("%c %d \n",i+'a',count[i]); } } getch(); }
/* out put*/
a 2
b 3
c 2
d 2
s 1
/* but i want it should only give me repeating character and its frequency and in next line it should show me the those char which are non repeating one*/
can you help me plzzzzzz