#include<stdio.h> |
#include<string.h> |
void main() |
{ |
char
s1[30],s2[30]; |
int cmp; |
printf("\nEnter The String (s1) : "); |
gets(s1); |
printf("\nEnter The String (s2) : "); |
gets(s2); |
cmp=strcmp(s1,s2); |
printf("\nComparison Between s1 and s2 : %d",cmp); |
|
} |