write an algorithm of selection sort in c
Answers
Answered by
1
Explanation:
Selection Sort in C
Example of Selection Sort.
Algorithm for Selection Sort:
Step 1 − Set min to the first location.
Step 2 − Search the minimum element in the array.
Step 3 – swap the first location with the minimum value in the array.
Step 4 – assign the second element as min.
Similar questions