#include
#include
main()
{
char a[100], b[100]="ruet";
printf("Enter the first string\n");
gets(a);
if( strcmp(a,b) == 0 )
printf("Entered strings are matched.\n");
else
printf("Entered strings are not matched.\n");
getch();
}
#include
main()
{
char a[100], b[100]="ruet";
printf("Enter the first string\n");
gets(a);
if( strcmp(a,b) == 0 )
printf("Entered strings are matched.\n");
else
printf("Entered strings are not matched.\n");
getch();
}
No comments:
Post a Comment