#include<stdio.h>
#include<string.h>
void main()
{
char str[20],cmp[20];
int x;
printf("enter the string : ");
gets(str);
printf("enter the string 2 : ");
gets(cmp);
x=strcmp(str,cmp);
printf("%d",x);
}
my doubt is how strcmp returns an integer ??how will it take the words