Professional Documents
Culture Documents
co m
display(A,n); getch(); } }Heap.c file Heap Sort Algorithm Data Structure #includeheap.h void main() { int A[20],n; int i; clrscr(); printf (\n\n How many numbers do u want to sort:\t); scanf (%d,&n); printf (\n Enter the values); f or(i=0;i { printf (\nA[%d]\t,i); scanf (%d,&A[i]); } heapsort(A,n); getch(); } Heap Sort OUT PUT How many numbers do u want to sort: 5 Enter the values A[0] 100 A[1] 25 A[2] 10 A[3] 9 A[4] 5 100 25 10 9 5 25 9 10 5 100 10 9 5 25 100 9 5 10 25 100 5 9 10 25 100
Relat ed Post
Postf ix Program in c QUICK SORT program in C Enter your email address:
Delivered by FeedBurner