INSERTION SORT
- Start with an empty left hand [sorted array] and the cards face down on the table [unsorted array].
- Then remove one card [key] at a time from the table [unsorted array], and insert it into the correct position in the left hand [sorted array].
- To find the correct position for the card, we compare it with each of the cards already in the hand, from right to left.
#include
void inst_sort(int[], int);
void main()
{
int num[20],count,n;
printf("\n how many elements\n");
scanf("%d",&n);
printf("\nEnter the elements to sort\n");
for(count=0;count=0&&k
