Shell Sort - Online Code

Description

An example of Shell Sort algorithm.

Source Code

#include <string.h>
#include <stdio.h>
#include <stdlib.h>

void shell(char *items, int count)
{
  int i, j, gap, k;
  char x, a[5];

  a[0]=8; a[1]=5; a[2]=3; a[3]=2; a[4]=1;

  for(k=0; k < 5; 
... (login or register to view full code)

To view full code, you must Login or Register, its FREE.

Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.




Comments

No comment yet. Be the first to post a comment.