Sorting in C
Sorting is technique which is used to arrange the data in a particular order, either ascending or descending order. In C-Language there are 3 types of sorting techniques availabe i.e. Bubble Sort, Selection Sort, Insertion Sort.
1. Bubble Sort - It starts comparing numbers from starting till end of the list and place a largest number in the end in the 1st pass.
2. Selection Sort - It starts comparing numbers from top and place a smallest number in starting in 1st pass.
3. Insertion Sort- It start comparing numbers from 1st index to top of the list and insert the number at its sorted position.