Source Code #include <stdio.h> //defining the constant ASIZE as array's size #define ASIZE 10 void main() { int i,j,key; //var just for displaying the in-between arrays int l; //unsorted array int a[ASIZE]={0,5,4,8,1,9,7,3,6,2}; // printing the unsorted array printf("Unsorted Array: "); for(i=0;i<ASIZE;i++) printf("%d ",a[i]); printf("\n\n"); //start of Selection Sort //traversing the whole array for(i=0;i<ASIZE;i++){ //taking position of i in a key variable key=i; //gives the smaller element everytime one is found printf("\nSmallest Element= %d", a[key]); //inner loop to find position of smallest digit //traversing the unsorted array for(j=i+1;j<ASIZE;j++){ if(a[key]>a[j]){ key=j;