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 REVERSE THE WORD IN STRING
#include conio.h>
#include stdio.h>
#include string.h>
void main()
{
char a[50],b[25][25],temp;
int i=0,j=0,k=0,l[25],c=0,c1=0,t=0;
clrscr();
for(i=0;i<25;i++)
for(j=0;j<25;j++)
l[i]=0;
b[i][j]=0;
}
i=0;
j=0;
printf("ENTER THE STRING: ");
do
a[i++]=getchar();
}while(a[i-1]!='\n');
a[i]='\0';
for(i=0;a[i]!=0;i++)
if(a[i]!=' ' && a[i]!='\n')
l[c]=l[c]+1;
b[c][c1++]=a[i];
else
c++;
c1=0;
c=0;
for(i=0;l[i]!=0;i++)
for(j=0;b[i][j]!=0;j++)
if(b[i][j]=='A' || b[i][j]=='a' || b[i][j]=='E' || b[i][j]=='e' || b[i][j]=='I' || b[i][j]=='i' || b[i][j]=='O' || b[i][j]=='o' || b[i][j]=='U' || b[i][j]=='u')
c=1;
if(c==1)
c1=l[i];
c1--;
t=l[i];
t=t/2;
for(k=0;k { temp=b[i][k]; b[i][k]=b[i][c1]; b[i][c1]=temp; c1--; } c=0; } } for(i=0;l[i]!=0;i++) { printf("%s ",b[i]); } getch(); } OUTPUT : ENTER THE STRING: KAMLESH D MENGAR HSELMAK D RAGNEM
temp=b[i][k];
b[i][k]=b[i][c1];
b[i][c1]=temp;
printf("%s ",b[i]);
getch();
OUTPUT :
ENTER THE STRING: KAMLESH D MENGAR
HSELMAK D RAGNEM
Explain Operator Overloading It is one type of Polymorphism, an significant feature of object-oriented programming .Polymorphism means one thing having many forms, i.e. here an
I have a C++ programming assignment due on 8th January. As I am out of country and cannot complete it, I would like to know how much fees would you charge to complete the assignmen
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.
Array of Objects: The objects can be declared just like a structure or even a primary data type. Array of objects may be required to work with large set of data. When the da
A company needs 200 pencils per year . you cannot simply use this price as the cost of pencils two years from now. Because of inflation the cost is likely to be higher than it is
A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome
Program of file data: FileData::FileData( ffblk& blk ) : fileName( blk.ff_name ), fileDate( (blk.ff_fdate >> 5) & 0x000F, blk.ff_fdate & 0x0001F
Can you think of a condition where your program would crash without attaining the breakball, which you set at the straining of main()? A: C++ let for dynamic initialization of g
B-tree: A B-tree is an also called balanced m-way tree. A node of the tree may have many records or key and pointers to children. It is also called as the balanced sort tree. It s
Implementation of the Definition class: void Definition::put_word(char *s) { word = new char[strlen(s)+1]; strcpy(word,s); nmeanings = 0; } voi
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