void main()
{
char n[100],n1[100];
int i,j;
clrscr();
printf("ENTER THE FIRST STRING: ");
scanf("%s",n);
printf("ENTER THE SECOND STRING: ");
scanf("%s",n1);
for(i=0,j=0;n[i]!='\0';i++)
{
if(n[i]!=n1[i])
j=1;
}
if(j==0)
printf("THE TWO STRING ARE EQUAL");
else
printf("THE TWO STRING ARE NOT EQUAL");
getch();
}
OUTPUT :
ENTER THE 1 STRING: KAMLESH
ENTER THE 2 STRING: KAMLESH
THE TWO STRING ARE EQUAL