Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions

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: