implementation of Bubble Sort using an array in C
implementation of Bubble Sort using an array in C
#include <stdio.h>
int swapped = 0;
arr[j + 1] = temp;
swapped = 1;
if (!swapped)
break;
printf("\n");
// Main function
int main() {
bubbleSort(arr, n);
printArray(arr, n);
return 0;
OUTPUT –
Sorted array: 11 12 22 25 34 64 90