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
Write a program that does the following: Calculates the Velocity and Momentum of an object. The formula for the velocity is V=d/t and the formula Momentum is m=mass*velocity. Your
Are comments included during compilation stage and placed in EXE file as well? - No, comments encountered by compiler are disregarded. - Their only purpose is ease and guida
In this worksheet you are asked to write three classes in C++: Lecture class, Course class and University class. The classes relate to each other in the way that a Course has many
#questi An array of n numbers is given, where n is an even number. The maximum as well as minimum of these given numbers need to be determined. Which of the following is true about
Program is to take two arguments and returns the string: Program is to take two arguments and returns the string which is larger the larger string has larger ascii value invok
Ask question # Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particu
fine the class bankAccount to implement the basic properties of a bank account. An object of this class should store the following data: Account holder''s name (string), account nu
Pointer to function: int mul(int a, int b, int c) { return a*b*c; } void main() { int (*function_pointer)(int, int, int); function_pointer = &mul;
Default Value Functions, When declaring a function we can specify a default value for each parameter. This value will be used if that parameter is left blank when calling to the f
padovan string program in java // aakash , suraj , prem sasi kumar kamaraj college program 1 : package test.padovanstring; public class PadovanString { publ
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