Tag Archives: arrange

Write a program in C’ that accepts 10 words of varying length and arranges the words in the descending order of word length. Use arrays. 10m Dec2006

Write a program in C’ that accepts 10 words of varying length and arranges the words in the descending order of word length. Use arrays. 10m Dec2006 #include<stdio.h> #include<string.h> void main() { int i,j; char array[10][10],temp[10]; clrscr(); printf(“Enter ten words : \n”); for(i=0;i<10;i++) { printf(“%d : “,i+1); gets(array[i]); } for(i=0;i<10;i++) { for(j=i;j<10;j++) { if(strlen(array[i])<strlen(array[j])) {… Read More »

ASSEMBLY17 An Assembly program to arrange given N numbers in Descending order

Now we will write another Assembly program to to arrange given N numbers in Descending order. Let’s identify variables needed for this program. First variables will be the one which will hold the values present in the Given Numbers in Array list and it will be array ARR. Other variables will be holding Length of the Array and it… Read More »