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 to FIND THE EVEN WORDS IN THE STRING
#include conio.h>
#include stdio.h>
void main()
{
char a[50],temp;
int i=0,k=0,l[25],c=0,r=0;
clrscr();
for(i=0;i<25;i++)
l[i]=0;
}
i=0;
printf("ENTER THE STRING: ");
do
a[i++]=getchar();
}while(a[i-1]!='\n');
a[i]='\0';
printf("%s",a);
for(i=0;a[i]!='\0';i++)
if(a[i]==' ' || a[i]=='\n')
temp=a[k];
a[k]=a[i-1];
a[i-1]=temp;
k=i+1;
c++;
else
l[c]++;
for(i=0;l[i]!=0;i++)
if(l[i]%2==0)
r++;
printf("%s\n",a);
printf("THE TOTAL NO OF EVEN WORDS ARE: %d",r);
getch();
OUTPUT :
ENTER THE STRING: KAMLESH D MENGAR
HSELMAK D RAGNEM
THE EVEN WORDS ARE : 1
Assignment: write a C program and a MASM procedure. The C program calls the MASM procedure to perform letter case conversion. Text sections covered: 12.1 to 12.3.1 Write a
defining software crisis As the technology changes rapidly the requirement for the users' change, to part the growing demand of the user for trade, business, and personal
A: By keeping along with the C++ tradition of "there's more than one method to do that" (translation: "give programmers options & tradeoffs so they can choose what's best for them
Program for Swapping the Two Integers For example, Swapping the two value int x=4,y=6,t; t
#questionhow can i add new customer and alot him a new unique id ..
The program sorting.cpp contains a main function for testing the operation of several sort algorithms over various data sizes and data set organisations. The program understands
How do you know that your class requires a virtual destructor? A: If at least your class has one virtual function, you must make a destructor for this class virtual. It will let
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
1.jewels can only be removed for polishing from either end of the necklace. 2.cost of polishing=sitting number*colour value of jewels.
what is the difference between call by reference and call by pointer method?
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