WAP TO ACCEPT STRING AND COUNT A COMES N TIMES B COMES N
TIMES C COMES N TIMES D COMES N TIMES AND SO ON.........
AT LAST UNTIL Z COMES N TIMES...............
Answer Posted / vignesh1988i
m minor modification
#include<stdio.h>
#include<conio.h>
void main()
{
int count;
char str[100];
printf("enter the string :");
gets(str);
for(int i=65;i<=122;i++)
{
count =0;
for(int j=0;str[j]!='\0';j++)
{
if(str[j]==(char)i)
{
printf("the character %c occurs %d times \n",i,count);
count++;
}
}
}
getch();
}
thank you
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What does printf does?
What is fflush() function?
What is the explanation for modular programming?
List the different types of c tokens?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
What is structure pointer in c?
How can I direct output to the printer?
How can I avoid the abort, retry, fail messages?
What is anagram in c?
Explain how can a program be made to print the line number where an error occurs?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
Explain spaghetti programming?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
Who developed c language?