/* Program to Print the array in sorted order using Insertion Sort Insertion Sort: It is a algorithm to sort array like you play cards. */ #include #include //Function to sort array using insertion sort void insertion_sort(int a[],int size) { int round,i,shift=0; // assign 1 to round until the round is less than size run the loop and increment round by 1 for(round=1;round<=size-1;round++) { // take a[round] value in shift shift=a[round]; // now assign round to i and until i is greater than 0 run the loop for(i=round;i>=1;i--) { // check whether the a[i-1] is less than the shift variable value if yes then break if(a[i-1]