Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
# include stdio.h>
# include string.h>
# include conio.h>
void main()
{
int i=0,count=0;
char a[100],b;
clrscr();
for(i=0;i<100;i++)
a[i]=0;
}
i=0;
printf("\nENTER THE STRING: ");
gets(a);
printf("ENTER THE CHARACTER U WANT TO COUNT; ");
scanf("%c",&b);
for(i=0;a[i]!='\0';i++)
if(a[i]==b)
count++;
printf("\nTHE CHARACTER IS %c",b);
printf("\nTHE TOTAL OF ABOVE CHARACTER IS %d",count);
getch();
OUTPUT :
ENTER THE STRING: KAMLESH D MENGAR
ENTER THE CHARACTER WHICH U WANT TO COUNT: A
THE CHARACTER IS A
THE TOTAL OF ABOVE CHARACTER IS 2
em Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using ''Content here, content here'', making it look like readable English. Many desktop publis
Suppose that three integer variables intA, intB, and intC have already been defined at the beginning of the main function, write a single C++ statement to read three integers from
Depreciation to a salvage value of 0. For tax purposes an item may be depreciated over a period of several years, n. With the straight line method of depreciati
What is inheritance? Class, the vehicle, which is used to execute object-oriented concepts in C++, has given a new dimension to this idea of reusability. Many vendors now offer
The concept of a string in C is difficult, because a string is a collection of characters stored in memory terminated by a NULL string i.e. \0. Let us consider the string Hello. Th
How much to buy assignment?
print this pattern 1 01 101 0101
How can one make it so keys pressed through users are not echoed on the screen? A: It is not a standard C++ feature. C++ doesn't even need your system to have a keyboard or a sc
what is the purpose of pointer ? what is the syntax? how it works?
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd