/* Program to demonstrate straight selection sort or push down sort */ #include #include void select(int x[ ], int n) ; void show(int x[ ], int n) ; void main() { int i, n, x[20] ; clrscr() ; printf("Enter the number of elements: ") ; scanf("%d",&n) ; printf("Enter the elements:\n") ; for(i=0; i0 ; i--) { max=x[0] ; index=0 ; for(j=1 ; j<=i ; j++) if(x[j]>max) { max=x[j] ; index=j ; } x[index]=x[i] ; x[i]=max ; show(x,n) ; } } /* change x[j]>max to x[j]