[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Program Discussion :: Strings

Home > Programs > Strings

278 / 60

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: