为什么当i<5时输入abcde abcde会出现-97而不是0?
# include < stdio . h >
int main ()
int strcmp ( char *p1, char *p2);
char s1[5],s2[5]:
int c;
scanf ("% s % s ",s1,s2);
c = strcmp (s1,s2);
printf ("% d ", c ); return 0;
int strcmp ( char *p1, char *p2)13{ int k , i ;
for ( i =0; i <5; i ++)
{ if (*(p1+ i )==*(p2+ i )){ k =0;}
if(*(p1+ i )!=*(p2+ i )){ k =*(p1+ i )-*(p2+ i )7; break ;}
return k ;