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
Program of swapping two varibales: void swap(int *, int *); // This is swap's prototype int main() { int x = 5, y = 7; swap(&x, &
color representation 0,1,2,3,4,5,6,7...
I am seeking a developer to create a mobile game for me. I want an endless runner game with simple controls. The game needs to be a 3D game in a 2D view. The graphics and animation
I need website Product section search box coding section fix Project Description: On our products section in the search box it only searches the name and title of our product
Program is to find the maximum from two numbers: Program is to find the maximum from two numbers entered by the user having pointer variable as parameter void main() {
char P[100]; double X=533.8*22500; sprintf(P,"%f %u",X,(unsigned int)X); MessageBox(P,"SSS"); //12010500.000 12010499
Write a program in C that you will name "divide.exe", to divide one 32-bit twos-complement binary number by another, giving the quotient and the remainder, using the subtract-shift
write a pseudocode algorithm for a program that accepts a number and prints out its reciprocal(1/n) is required.the program should prevent the user from entering zero by asking t
Define Enumeration in Computer Programming? Enumerated types enclose a list of constants that are able to be addressed in integer values. We can declare variables and types
wanna c++ program of superpostion of waves
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