Selection Sort Program in C – Sorting Algorithm

Write a selection sort program in C. How selection sort algorithm works and what’s their time complexity.

What is Selection Sort

Selection sort is an in-place comparison sort. Like bubble sort time complexity of Selection sort is also O(n^2). It is not suitable for large elements.