#include #include int main() { int t,i,len,count,j; char str[10001],ch[2],ce; scanf("%d",&t); for(j=1; j<=t; j++) { scanf(" %[^\n]",str); len=strlen(str); scanf("%s",ch); if(ch[0]>='A' && ch[0]<='Z') ce=ch[0]+' '; else ce=ch[0]; count=0; for(i=0; i0) { printf("Occurrence of '%c' in '%s' = %d\n",ch[0],str,count); } else { printf("'%c' is not present\n",ch[0]); } } return 0; }