#include <iostream> using namespace std; void select_sort(int array[],int n){ int i,j,k,t; for(i=0;i<n-1;i++){ k=i; for(j=i+1;j<n;j++){ if(array[j]<array[k]){ k=j; } t=array[k]; array[k]=array[i]; array[i]=t; } } } int main(){ int a[10]={3384,32874,2364,236476,63,63,37}; select_sort(a,10); for(int i=0;i<10;i++){ cout<<a[i]<<" "; } cout<<endl; }