/* Program to understand use of strcmp() */
main()
{
str1[15],str2[15];
printf("Enter first string :");
gets(str1);
printf("Enter second string :");
gets(str2);
(strcmp(str1,str2)==0)
{
printf("Both string is equal");
}
{
printf("Both string are not equal");
}
0;
}
|