Get Off-Campus Placement Jobs Info !!!
Programs asked in Mettl Coding Round
Click To Practce List of Programs asked in Nagarro !!!

Program Discussion :: Strings

Home > Programs > Strings

10 / 59

Write a program to check & count the occurrence of character in the given string?

Answer:

include 

int main()
{
  char str[10];
  int c=0,count[26]={0},x;
  scanf("%s",str);
  for(int i=0;str[i]!='\0';i  ){
    if(str[i]>='a'

Asked In :: Virtusa

Post Your Answer Here:

Language:

Post Your Reply Here: