2. Basic Assignments
2. Basic Assignments
For compilation: gcc file_name.c -o file_name
For execution: ./file_name
Difference between Bubble, Selection and Insertion Sort
Bubble Sort: Repeatedly moves the largest element to its correct position by swapping adjacent elements.
Selection Sort: Repeatedly selects the smallest element and places it in its correct position.
Insertion Sort: Repeatedly inserts the current element into its correct position in the already sorted part of the array.