Previous Next
Program
#include ”stdio.h”
#include ”conio.h”
int i,j,a[20],n;
void main()
{
clrscr();
printf("MERGE SORT\n");
printf("Enter the no of elements:");
scanf("%d",&n);
for(i=0;I < i="0;I" k="1;k" y="a[k];" i="k-1;I"> =0 && y < a[i]; i--)
a[i+1] = a[i];
a[i+1] = y;
}
}