Your indentation could use some more noticeable spaces.
#include<conio.h> is not a standard header file.
clrscr(); and getch(); are not portable C standard functions.
void main() should always return an int, except when there's not host operating system.
printf("enter the name:"); you ask for a name, but expect six to be entered via a loop.
scanf("%s",&a[i]); a[i] is a pointer already. What if the input is more than seven which is the limit of char a[i][7]? scanf() should always be limited on reading and checked at return for failure.
strcmp(a[i],a[j+1]); strcmp(a[5], a[5+1]); What's in a[6]? Oh, there's not an a[6]. Same it is applicable for strcpy()
Last edited by Aia; Jan 18th, 2009 at 2:01 pm.
Reputation Points: 2224
Solved Threads: 218
Nearly a Posting Maven
Offline 2,304 posts
since Dec 2006