下面程序的功能是将字符串s的所有字符传送到字符串t中,要求每传递三个字符后再存放一个空格,例如字符串s为"abcdefg",则字符串t为"abc def g",请选择填空。 #include "stdio.h" #include "string.h" main() { int j, k=0; char s[60], t[100], *p; p=s; gets(p); while(*p) { for (j=1; j<=3 && *p; 【1】) t[k]="*p;" if (【2】) { ; k++;} } puts(t); 其中【2】应该填写>
A.j==4
B.*p==’\0’
C.!*p
D.j!=4
- · 有1位网友选择 B,占比100%