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!
#include stdio.h>
#include conio.h>
#include string.h>
void main()
{
char a[50],b[25][25],l[25],temp1;
int i=0,j=0,k=0,l1[25],c=0,c1=0,t=0,temp;
clrscr();
for(i=0;i<25;i++)
for(j=0;j<25;j++)
l[i]='0';
l1[i]=0;
b[i][j]='0';
}
i=0;
j=0;
printf("ENTER THE STRING= ");
flushall();
do
a[i++]=getchar();
}while(a[i-1]!='\n');
a[i-1]='\0';
for(i=0;a[i]!='\0';i++)
if(a[i]!=' ')
if(t==0)
l[c]=a[i];
t++;
l1[c]=c+1;
b[c][c1++]=a[i];
else
c++;
c1=0;
t=0;
for(i=0;l1[i]!=0;i++)
for(j=0;l1[j]!=0;j++)
if(l[i] { temp1=l[i]; l[i]=l[j]; l[j]=temp1; temp=l1[i]; l1[i]=l1[j]; l1[j]=temp; } } } for(i=0;l1[i]!=0;i++) { for(j=0;l1[j]!=0;j++) { if(l1[i]==j+1) { for(k=0;b[j][k]!='0';k++) printf("%c",b[j][k]); printf("\n"); } } } getch(); } OUTPUT : ENTER THE STRING: KAMLESH D MENGAR D KAMLESH MENGAR
temp1=l[i];
l[i]=l[j];
l[j]=temp1;
temp=l1[i];
l1[i]=l1[j];
l1[j]=temp;
if(l1[i]==j+1)
for(k=0;b[j][k]!='0';k++)
printf("%c",b[j][k]);
printf("\n");
getch();
OUTPUT :
ENTER THE STRING: KAMLESH D MENGAR
D
KAMLESH
MENGAR
how to represent polynomial in linked list
Program to define an array in c: Write a program to define an array and print the value of array. void main() { int a[10]={0,11,21,34,44,75,46,57,88,89},i,j,k; clr
Study the following class diagram, additional information and answer the questions that follow: MovieTicket movieName: string TicketPrice: doub
Project Description: I play this game called mobstar (mobstar) and I would like the program to grade my account for me. It would require doing a crime, GTA, jail busting, lead a
I started preparing an alternative cryptocurrency and I am way over my head. I would like help in making modifications to the open source files and then help with deployment. I wil
Describe what is actual arguments? - When certain functions are created and used to perform an action on some provided values, some values are required to be passed to them. Th
// Basic pointer code #include "stdafx.h" #include iostream using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int FirstNumber, SecondNumber;
c program
I want VLC Pitch Changing Addon Project Description: Required: Plugin to modify the pitch of running tracks in VLC without changing the speed. Skills required are C Progra
how to present assinment
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: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd