void selectSort(int A[],int N) { int i,j; for(i=0;i<N-1;i++) { for(j=i+1;j<N;j++) { if(A[i]>A[j]) { int tmp=A[j]; A[j]=A[i]; A[i]=tmp; } } } }