有以下程序#include<stdio.h>main() {char s[]=“
2024-06-26 61次 计算机二级 反馈错误 加入收藏 正确率 : 100%
题目内容:
[单选题]有以下程序
#include<stdio.h>
main()
{char s[]=“012xy\08s34f4w2”;
int i,n=0:
for(i=0;s[i]!=0;i++)
if(s[i]>=‘0’&&s[i]<=‘9’)n++:
printf(“%d\n”,n):
}
程序运行后的输出结果是
A.0
B.3
C.7
D.8
本题链接: