Tag Archives for Shell Sort

Shell Sort

Sorting using shell sort method. #include <stdio.h> #define MAX 20 main() { int arr[MAX], i,j,k,n,incr; printf(“Enter the number of elements : “); scanf(“%d”,&n); for(i=0;i<n;i++) { printf(“Enter element %d : “,i+1); scanf(“%d”,&arr[i]); } printf(“Unsorted list is :\n”); for (i = 0; … Continue reading

23. May 2010 by Jishnu
Categories: C Programming | Tags: , | Leave a comment