Bubble Sort_Selection Sort
Bubble Sort_Selection Sort
#include <stdio.h>
arr[i] = arr[j];
arr[j] = temp;
swap(arr, j, j + 1);
} }}
int main() {
int arr[] = { 6, 0, 3, 5 };
bubbleSort(arr, n);
return 0;
#include <stdio.h>
int min_idx = i;
min_idx = j;
arr[min_idx] = arr[i];
arr[i] = temp;
int main() {
printf("\n");
selectionSort(arr, N);
printf("\n");
return 0;