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
Deliverables: you are required to upload your c code in the assignment dropbox set in Moodle. You are supposed to work with Linux gcc compiler and pico editor for compiling via the
A: Using the extern "C" linkage specification around the C function declarations. Programmers must know about mangled function names and type-safe linkages. After that they must
Define Passing Structure to a Function? A structure is able to be passed as a function argument identical to any other variable. If we are merely interested in one member of a
requiredrequiredrequiredrequiredrequiredrequiredrequiredrequired
Write a sequence of instructions that transfers data from memory to an external I/O device by using channel 3 of the 8237 DMA controller. Transfer from 20000H-20FFFH.
how to write the pgogram?
Program is to define a class as employee: Write a program to define a class as employee and collect information about them by using classes and object class employee {
Problem : (a) Stacks can be implemented using arrays. Write down the following C or C++ function to (i) create a stack (ii) add an element to a stack (push). (b) Expl
world wide web
Create a user-defined data structure (struct) called Node that represents a node within a linked list where the "data" stored in each node is a pointer to a Car object. a) Wr
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