Daa practicals

  • View
    796

  • Download
    2

Embed Size (px)

DESCRIPTION

All

Text of Daa practicals

1. Wap to implement Heap sort algorithm.#include

#include

void restoreHup(int*,int);

void restoreHdown(int*,int,int);

void main()

{

int a[20],n,i,j,k;

printf("enter the number of element to sort:");

scanf("%d",&n);

printf("enter the element:");

for(i=1;i