write a programe returns the number of times the character
appears in the string
Answers were Sorted based on User's Feedback
Answer / vignesh1988i
#include<stdio.h>
#include<conio.h>
void main()
{
char a[50],q;
int count =0;
printf("enter the sring :");
gets(a);
printf("enter the char. to be searched :");
scanf("%c",&q);
for(int i=0;a[i]!='\0';i++)
{
if(a[i]==f)
count++;
}
printf("the occurance is :%d",count);
getch();
}
| Is This Answer Correct ? | 3 Yes | 4 No |
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
How do I round numbers?
What are the features of the c language?
What is enumerated data type in c?
why wipro wase
write a program to remove occurrences the word from entered text?
What is double pointer?
What is difference between class and structure?
why programs in c are running with out #include<stdio.h>? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }
1 232 34543 4567654 can anyone tell me how to slove this c question
Is that possible to add pointers to each other?
Explain how can I open a file so that other programs can update it at the same time?