Question: problems when in array c++ #include using namespace std; void BubbleSort(int [ ], int); int main() { int x, n; cout >n; int *arr =
problems when in array c++
#include
using namespace std;
void BubbleSort(int [ ], int); int main() { int x, n; cout >n; int *arr = new int(n); cout > arr[x]; } BubbleSort(arr, n); cout ARR[i+1]) { hold =ARR[i]; ARR[i]=ARR[i+1]; ARR[i+1]=hold; } } } } 
explain my mistake with steps
Enter the number of items: 15 Enter 5 items 1 2 5 4 3 You entered: 1 -1113105159 2 3 4 Process exited after 4.64 seconds with Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
