填空题
C语言
题号 #143947
以下程序的功能是将字符串s中的数字字符放入d数组中,最后输出d中的字符串。例如,输入字符串:abc123edf456gh,执行程序后输出:123456。请填空。
#include
#include
main()
{ char s[80], d[80]; int i,j;
gets(s);
for(i=j=0;s[i]!='\0';i++)
if( (20) ) { d[j]=s[i]; j++; }
d[j]='\0';
puts(d);
}
参考答案
暂无
答案解析
s[i]>='0' && s[i]<='9'
你可能感兴趣的试题
A.10□X□20□Y〈回车〉
B.10□X20□Y〈回车〉
C.10□X〈回车〉
D.10X〈回车〉
20□Y〈回车〉 20Y〈回车〉
20□Y〈回车〉 20Y〈回车〉
A.sqrt(abs(n^x+e^x))
B.sqrt(fabs(pow(n,x)+pow(x,e)))
C.sqrt(fabs(pow(n,x)+exp(x)))
D.sqrt(fabs(pow(x,n)+exp(x)))