void selection_sort(int list[], int n) { int i, j, temp; for(i = 0; i < n; i++) { for(j = i + 1; j < n; j++) { if(list[i] < list[j]) { temp = list[i]; list[i] = list[j]; list[j] = temp; } } } }