diff --git a/10.c b/10.c index b2608a0..a8a9236 100644 --- a/10.c +++ b/10.c @@ -31,7 +31,7 @@ void insertion_sort(int arr[], int n) { } } -void bubble(int arr[], int n) { +void bubble_sort(int arr[], int n) { for (int i = 0; i < n - 1; i++) { int swapped = 0; @@ -171,5 +171,11 @@ int main() { heap_sort(arr5, SIZE); display(arr5, SIZE); + int arr6[] = {1, 10, -100000, 1, -2}; + printf("Bubble Sort on: "); + display(arr6, SIZE); + bubble_sort(arr6, SIZE); + display(arr6, SIZE); + return 0; } diff --git a/10.png b/10.png index dff6570..79532b8 100644 Binary files a/10.png and b/10.png differ