----------------------------------------------
void SelectionSort(int
A[], int n)
{
int
i, j, min;
for
(i=0; i < n-1; i++)
{
min
= i;
for
(j=i+1; j < n; j++)
if
(A[j] < A[min]) min = j;
temp
= A[min];
A[min]
= A[i];
A[i]
= temp;
}
}
-----------------------------------------------
|