Source code for Insertion sort in C language.
#include
#define NUM 6
main() {
int arr[NUM],i,j;
// start reading nums
for(i=0;i0 && toInsert < arr[i-1]);
arr[i] = toInsert;
}
}
// print sorted arr
for(i=0;i
Please point your web link if you are using this code for any purpose.