// This program demonstrates a bubble sort // #include using namespace std; int arrSize; // I cheated and used a global ... sorry void bubbleSort(int [], long &); int main() { srand((unsigned)time(NULL)); // Seed the random number generator long totalSwaps = 0; cout << "Enter the size of the array please: "; cin >> arrSize; int *arr = new int[arrSize]; for(int i=0; i