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!
C Program for FUNCTION OF COUNT THE CHARACTERS IN EACH WORD
void count(char c[]);
void main()
{
char a[50];
int i=0;
clrscr();
printf("ENTER THE STRING: ");
do
a[i++]=getchar();
}while(a[i-1]!='\n');
a[i]='\0';
count(a);
getch();
}
void count(char a[])
int i=0,l[25],c=0;
for(i=0;i<25;i++)
l[i]=0;
for(i=0;a[i]!='\0';i++)
if(a[i]!=' ' && a[i]!='\n')
l[c]=l[c]+1;
else
c++;
for(i=0;l[i]!=0;i++)
printf("WORD : %d : %d\n",i+1,l[i]);
OUTPUT :
ENTER THE STRING: KAMLESH D MENGAR
WORD 1 : 7
WORD 2 : 1
WORD 3 : 6
We are now quite happy to use the basic mathematical expressions, however in engineering we use scientific functions i.e Sin , Cos , ln etc . Within C we have the following functi
Problem Description Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new techn
Employ operator () instead of operator[]. While you have multiple subscripts, the cleanest way to do it is along with operator () instead of with operator[]. The reason is that
how can I find the GCD of 2 given numbers using Euclidean Algorithm ?
how is a beti a beti
A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci
Hello. I need a solution for this assignment. It is for C++ Language: Create a BusinessPartner class that contains a first name, company name, and a telephone number. Create a Con
Define a class polynomial with three private data members a, b and c of type double to represent the coefficient of two degree polynomial(ax^2+bx+c). Include a constructor in a pol
enter height of the shape: 1 3 5 3 1 3 5 7 5 3 5 7 9 7 5 3 5 7 5 3 1 3 5 3 1
write a javaprogram to solve padovan string using java? program in java // aakash , suraj , prem sasi kumar kamaraj college program 1 : package test.padovanstring;
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