diff --git a/Bubble_Sort.cpp b/Bubble_Sort.cpp index af37fda..7bac59e 100644 --- a/Bubble_Sort.cpp +++ b/Bubble_Sort.cpp @@ -1,20 +1,20 @@ #include using namespace std; -void printArray(int *a,int k) +void printArray(int *a,int b) { - for(int i=0;ia[i+1]) { @@ -25,15 +25,15 @@ void bubbleSort(int *a,int k) } } } -void bubbleSortAdaptive(int *a,int k) +void bubbleSortAdaptive(int *a,int b) { int temp; int isSorted=1; - for(int j=0;j< k-1;j++) + for(int j=0;j< b-1;j++) { cout<<"Program working on pass number "<a[i+1])