Answer Posted / anil kumar nahak
void main()
{
char *st,ch;
int i=0,c=0;
printf("\n Enter The String: ");
gets(st);
printf("\n Enter A character For finding occurance: ");
scanf("%c",&ch);
while(st[i]!='\0')
{
if(st[i]==ch)
c++;
i++;
}
printf("\n %c Present In The String %d Times",ch,c);
}
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
please explain every phase in the "SDLC" in the dotnet.
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Define recursion in c.
What is a example of a variable?
What is the size of structure pointer in c?
What does node * mean?
Explain two-dimensional array.
What are formal parameters?
When should volatile modifier be used?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
Write a function that will take in a phone number and output all possible alphabetical combinations
Explain how can a program be made to print the name of a source file where an error occurs?
I need testPalindrome and removeSpace
#include
Explain what is the most efficient way to store flag values?