/* partition for quicksort */ #define SIZE 20 #include int a[SIZE] = {20, 19, 1, 3, 10, 10, 10, 10, 18, 4, 5, 10, 6, 7, 10, 17, 16, 14, 15, 8}; void partition (int[], int left, int right, int pivotindex, int *i, int* j); void display (int a[], int n) { int i; for (i=0; i