下列程序段执行后,s的值是( ) static char ch[]="600"; int a,s=0; for(a=0;ch[a]>='0'&&ch[a]<='9';a++) s=10*s+ch[a]-'0';
A.600 B.6 C.0 D.出错正确答案A
='0'&&ch[a]<='9';a++) s=10*s+ch[a]-'0';">
下列程序段执行后,s的值是( ) static char ch[]="600"; int a,s=0; for(a=0;ch[a]>='0'&&ch[a]<='9';a++) s=10*s+ch[a]-'0';
A.600 B.6 C.0 D.出错正确答案A