#include<stdio.h>
#include<string.h>
void main()
{
void sort(char *name[],int n);
void print(char*name[],int n);
char *name[]={"fllow me","basic","great wall","fortran","computer design"};
int n=5;
sort(name,n);
print(name,n);
}
void sort(char *name[],int n)
{
char *temp;
int i,j;
for(i=0;i<n-1;i++)
{
for(j=i+1;j<n;j++)
{ if(strcmp(name[i],name[j]))>0
{temp=name[i];name[i]=name[j];name[j]=temp;}}
}
void print(char *name[],int n)
{
int i;
for(i=0;i<n;i++)
printf("%s\n",name[i]);
}