若有以下程序
#include
char *a="you";
char b[ ]="Welcome you to China!";
main()
{ int i, j=0; char *p;
for ( i=0; b[i] !='\0'; i++ )
{ if (*a == b[i])
{ p=a;
for (j=i; *p!='\0'; j++)
{ if (*p != b[j]) break;
p++;
}
if (*p=='\0') break;
}
}
printf("%s", &b[i]);
}
则程序的输出结果是
- A.China!
- B.to China!
- C.me you to China!
- D.you to China!
热度🔥1,360
解析:打开微信小程序查看本题解析