有以下程序#include<stdio.h>main() {char s[]=“012xy\08s34f4w2”; int i n=0:for(i=0;s[i
有以下程序
#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
请帮忙给出正确答案和分析,谢谢!