下面程序的功能是将字符串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】) { t[k]=' '; k++;} } t[k]='0'; puts(t); } 其中【2】应该填写

A.j==4 B.*p=='0' C.!*p D.j!=4

时间:2024-02-06 22:17:50

相似题目