0
Yu
#include<stdio.h> #include<string.h> int main( ) { char str1[10], str2 [10]; int a; printf ("Enter the first string: "); scanf("%s",str1); printf ("Enter the second string :"); scanf("%s",str2); a=strncmp(str1,str2,4); printf("%d",a); return 0; }
1 Resposta