Sample C Program To Implement Quick Sort Using Pointers, Functions & Arrays.
STEP 2: Assign the pointer array *a as global, Read the value of n.
STEP 3: Set a for loop to read the elements of array.
STEP 4: Call the function sort(0, n - 1).
STEP 5: Print the sorted array a.
STEP 2: Check if first is less than last.
STEP 4: Assign a while loop till the condition.
STEP 8: Then swap the values of a[j] and a[first].