/* C implementation QuickSort */ #include using namespace std; int partition (int arr[], int low, int high) { int pivot = arr[high]; // pivot int i = (low - 1); // Index of smaller element for (int j = low; j >size; int arr[size]; cout<<"\nEnter the unsorted elements : "; for (int i = 0; i < size; ++i) { cout<<"\n"; cin>>arr[i]; } quickSort(arr, 0, size); cout<<"Sorted array\n"; show(arr, size); return 0; }