Code:
#include<string.h>
main (void){
char name[20][20];
int i;
clrscr();
for(i=0;i<=4;i++){
printf("Enter the Names:\n",i);
scanf("%s",&name[i]);
}
//sorting//
for(i=0;i<=4;i++){
printf("%s\n",name[i]);
}
getch();
return 0;
}
its 2 dimensional array of strings but not yet sorted...
pls give me some function how to sort it by alphabetical order...
Comment