#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char string1[]= "computer";
char string2[]= "education";
char string3[]= "Nepal";
int a,b;
a = strcmp(string1, string2);
b = strcmp(string2, string3);
printf("\nFirst sting:%d\n", a);
printf("\nSecond sting:%d\n", b);
getchar();
}
#include<conio.h>
#include<string.h>
main()
{
char string1[]= "computer";
char string2[]= "education";
char string3[]= "Nepal";
int a,b;
a = strcmp(string1, string2);
b = strcmp(string2, string3);
printf("\nFirst sting:%d\n", a);
printf("\nSecond sting:%d\n", b);
getchar();
}
0 comments:
Post a Comment