diff --git a/selection_sort b/selection_sort index 15bc93e..db3058c 100644 --- a/selection_sort +++ b/selection_sort @@ -1,27 +1,22 @@ +void selection_sort (int A[ ], int n) { + // temporary variable to store the position of minimum element -#include -#define MAX 100 -int main(void) -{ - int arr[MAX],i,j,k,n; - printf("Enter the number of elements : "); - scanf("%d",&n); - for(i=0; i=0 && k