Homework/HW09/Utilities.cpp
void swap(int a[], int i, int j)
{
    int temp = a[i];
    a[i] = a[j];
    a[j] = temp;
}
/****************************** swap ***************************************************************
Action:         A quick swap function specifically made for arrays.  Part of the dual pivot
                quicksort by Vladimir Yaroslavskiy.

Parameters:
IN:             int a[], holds a pointer to the start of the array a.
IN:             int i, is the element number of <a> that will be swapped with element j.
IN:             int j, is the element number of <a> that will be swapped with element i.
OUT:            None

Returns:        Nothing

Precondition:   array must be allocated, and i and j must be valid elements of the array.
***************************************************************************************************/
swap
Action:         A quick swap function specifically made for arrays.  Part of the dual pivot
quicksort by Vladimir Yaroslavskiy.

int a[], holds a pointer to the start of the array a.
IN:             int i, is the element number of  that will be swapped with element j.
IN:             int j, is the element number of  that will be swapped with element i.
OUT:            None

Nothing

array must be allocated, and i and j must be valid elements of the array.
swap Action : A quick swap function specifically made for arrays . Part of the dual pivot quicksort by Vladimir Yaroslavskiy . int a [] holds a pointer to the start of the array a . IN : int i is the element number of that will be swapped with element j . IN : int j is the element number of that will be swapped with element i . OUT : None Nothing array must be allocated and i and j must be valid elements of the array .
void swap(int a[], int i, int j)
{
    int temp = a[i];
    a[i] = a[j];
    a[j] = temp;
}
void swap ( int a [ ] , int i , int j ) { int temp = a [ i ] ; a [ i ] = a [ j ] ; a [ j ] = temp ; }
swap
Action:         A quick swap function specifically made for arrays.
swap Action : A quick swap function specifically made for arrays .