换成了else怎么结果就不同了呢 真心求解释
#include<stdio.h>int main()
{
int i=0,j=0;
char sentence[100]=(" Created is a not big ");
char word[5]=("not");
for (i=0,j=0;i<=2;j++)
{
if((sentence[j]==word[i])&&j<100)
{i++;}
if(sentence[j]!=word[i]&&j<100)//else 这两个怎么不同啊结果???
{i=0;}
if(j>=100)
break;
}
if(i==2)
{printf(" find\n");}
else
{printf("not find\n);}
return 0;
}