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 SORTING OF LONG WORD WITH ONE STRING
#include stdio.h>
#include conio.h>
#include string.h>
void main()
{
char n[50],c[25][25];
int i=0,j=0,k=0,temp,t=0,t1=0,l[25],l1[25];
clrscr();
for(i=0;i<25;i++)
for(j=0;j<25;j++)
l[i]=0;
l1[i]=0;
c[i][j]='0';
}
i=0; j=0;
printf("ENTER THE STRING= ");
flushall();
do
n[i++]=getchar();
}while(n[i-1]!='\n');
n[i-1]='\0';
for(i=0;n[i]!='\0';i++)
if(n[i]!=' ')
l[t]=l[t]+1;
l1[t]=t+1;
c[t][t1++]=n[i];
else
t++;
t1=0;
for(i=0;l[i]!=0;i++)
for(j=0;l[j]!=0;j++)
if(l[i]>l[j])
temp=l[i];
l[i]=l[j];
l[j]=temp;
temp=l1[i];
l1[i]=l1[j];
l1[j]=temp;
if(l1[i]==j+1)
for(k=0;c[j][k]!='0';k++)
printf("%c",c[j][k]);
printf("\n");
getch();
OUTPUT :
ENTER THE STRING: KAMLESH D MENGAR
KAMLESH
MENGAR
D
3. Write a program to encrypt and decrypt strings of characters using the following ciphers: a) Caesar cipher b) Vigenere cipher c) Matrix transposition cipher Your program shoul
Arguments Passing Mechanism C++ supports the following argument passing mechanisms: i). Pass by value: A copy of the arguments value is made and passed to the called functio
Why can't one open a file in a different directory like "..\test.dat"? A: Since " " is a tab character. You must employ forward slashes in your filenames, even on operating s
A: It allows a program to reference an identifier in global scope which has been hidden by another identifier along with the same name in the local scope.
Receive 3 numbers and display them in ascending order from smallest to largest ed#
Pebble Merchant Problem Description There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides
want to solve the thermodynamics problems on c language
example of friend
Program to sort a range of numbers with Insertion: /* define variable */ const int max=29000; int list[max]; FILE *fp; clock_t start,end; char any1[8];
Define the following Window class : - integer data members, width and height - a constructor that accepts two integer parameters (width followed by height) and uses them to ini
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