C Program to sort a list of names

#include "stdio.h"
void main ()
{
  int i, j, n;
  char name[30][30], temp;
  clrscr ();
  printf ("\tProgram to sort a list of names\n\n");
  printf ("Enter the total no. of names less than 30\n");
  scanf ("%d", &n);
  printf ("Please enter the names\n");
  for (i = 0; i < n; i++)
  {
    scanf ("%s", name[i]);
  }
  /*Sorting Process Start*/
  for (i = 0; i < n; i++)
  {
    for (j = i + 1; j < n; j++)
    {
      if (strcmp ( name[i], name[j] ) > 0)
      {
    strcpy ( temp, name[i] );
    strcpy ( name[i], name[j] );
    strcpy ( name[j], temp );
      }
    }
  }
  /*Sorting Process End*/
  printf ("\nSorted list\n");
  printf ("**************");
  for (i = 0; i < n; i++)
  {
    printf ( "\n%s", name[i] );
  }
  getch ();
}