/** Program Name: Selection Sort Description: This Program sort a given array elements, using Selection Sort Algorithm Author: Tauqirul Haque */ #include <conio.h> #include <stdio.h> #define MAX 5 void selectionSort(int *, int ); void display(int *); void main() { int array[MAX] = { 35,56,23,11,46 }; printf("\nThe Array Before Sortint .... \n"); display(array); selectionSort(array,MAX); printf("\n\nThe Array After Sorting .. \n"); display(array); } void selectionSort(int *array, int array_size) { int i, j; int min, temp; for (i = 0; i < ar...
Get Linux Tips and Tricks, C Programs etc ..