answersLogoWhite

0

# include<stdio.h>

# include<conio.h>

void main()

{

int arr[10];

int i,j,temp;

clrscr();

for(i=0;i<10;i++)

scanf("%d",&arr[i]);

for(i=0;i<9;i++)

{

for(j=i+1;j<10;j++)

{

if(arr[i]<arr[j])

{

temp=arr[i];

arr[i]=arr[j];

arr[j]=temp;

}

}

}

printf("\nSorted array elements :\n");

for(i=0;i<10;i++)

printf("%d ",arr[i]) ;

getch();

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

Is duplicated data is accepted in linked list?

Yes definitely, a linked list can accept duplicate data. As the data of each node does not have any concern with data of other node. The node differs from each other in their addresses. Until user does not make the linked list to accept unique data, the linked list can accept duplicates. if unsorted (e.g. representig a queue): yes if sorted (e.g. representing a set): should be decided design-time


What is the minimum number of additional pointers will be needed to reverse a singly linked list?

3 pointers...


Write a program which reads names of students and their telephones from a file and produce a linked list ordered in alphabetical order by the surname of the student?

write a program which reads names of students and their telephones from a file and produce a linked list ordered in alphabetical order by the surname of the student.


What is defalt program for dll file how you can set it?

A DLL is a dynamically linked library - its essentially a progams component that can potentially be shared between many programs. It has no program association, and is managed by Windows itself. A DLL is a dynamically linked library - its essentially a progams component that can potentially be shared between many programs. It has no program association, and is managed by Windows itself.


How data structure can influence program performance?

Greatly. Certainly, a person with data structures orientation will write better structure code. Imagine yourself is asked to write adding to big integers numbers having 200 digits? Using long also we can not do this. By employing linked list type data structure we can achieve this. This is an example only.

Related Questions

How linked can be used to represent long integers?

Whatever linked is, I don't think it can be used to represent long integers.


Consider a linked list with n integers Each node of the list is numbered from 1 to n Develop a program using C language to split this list into 4 lists so that.?

list any six consteations


Are the Reverse Lights on 94' Tarus linked to the Transmission?

The reverse lights on a 94' Ford Taurus are linked to the transmission to indicate when the vehicle is moving backwards. This is done for safety reasons as cars are typically moving forward.


How do you write a c program to calculate factorial using recursion?

unsigned long nfact(int n) if (n==2) return n else return n*nfact(n-1); For 32-bit integers, this program will fail at N==13, due to overflow. For 64-bit integers, it will fail at N==21. A solution for this is an arbitrary decimal arithmetic library, perhaps based on linked lists.


The firm should accept independent projects if?

"The independent projects implies that the cash flows of the two investments are not linked to each other". If the cash flows of to investments are not linked then the firm should accept the project.


Is duplicated data is accepted in linked list?

Yes definitely, a linked list can accept duplicate data. As the data of each node does not have any concern with data of other node. The node differs from each other in their addresses. Until user does not make the linked list to accept unique data, the linked list can accept duplicates. if unsorted (e.g. representig a queue): yes if sorted (e.g. representing a set): should be decided design-time


What is the minimum number of additional pointers will be needed to reverse a singly linked list?

3 pointers...


How to write aC program to merge two singly linked list?

write a c program to circular queue


Write a program in C to create a Circular Linked list?

#include&lt;iostream.h&gt;


Is there a c program to multiply two polynomials using linked lists?

yes


What innovation was linked to the advances made in the space program?

Satellite communications- Apex


How you program a key for a Chevy venturer 2000?

If you want to program a new PK3 Key, there is a procedure at the bottom of the linked page.Take Care,Greg