void quicksort_rec int low int high int int int while low high if high

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
void quicksort_rec(int low, int high, int *a, int m)
{
int q;
while (low < high)
{
if (high - low < m)
select_sort(a, high - low);
else
{
q = Partition(low, high, a);
quicksort_rec(low, q - 1, a, m);
q = ++low;
}
}
}