Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main()
- {
- char Yname[20]="Deepak";
- char Fname[20]="deepak";
- int count;
- count=strcmp(Yname,Fname);
- if(count==0)
- {
- printf("\nBoth the strings %s and %s are equal",Yname,Fname);
- }
- else if(count>0)
- {
- printf("\nThe first strings %s is greater than second %s",Yname,Fname);
- }
- else
- {
- printf("\nThe first strings %s is less than second %s",Yname,Fname);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement