void selection_sort(int *array, int length){ int i, j, tmp; int min_num, min_pos; for(i=0;i