I want to have a program to read a string and print the frequency of each character and it should work in turbo c

I want to have a program to read a string and print the frequency of each character and it should work in turbo c

Our desired program is that,

#include
#include 
void main()
{
   int i[26],m,l,n;
   char str[180];
   clrscr();
   for(m=0;m<26;m++)
   i[m]=0;
   printf("Enter a string: \n");
   gets(str);
   l=strlen(str);
   for(m=0;m

By:Vivek Kr. Agarwal
Date:2006-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher