A.n=0;while((ch=getchar())!='\n')n++; B.n=0;while(getchar()!='\n')n++; C.for(n=0;getchar()!='\n';n++); D.n=0;for(ch=getchar();ch!='\n';n++);
单项选择题有以下程序 #inc1ude<stdio.h> main() { char*s={ ABC }; do { printf( %d ,*s%10); s++; } while(*s); } 注意字母A的ASCII码值为65。程序运行后的输出结果是()。
A.5670 B.656667 C.567 D.ABC
单项选择题以下程序段中的变量已正确定义 for(=0;i<4;i++,i++) for(k=1;k<3;k++);printf( * ) 程序段的输出结果是()。
A.******** B.**** C.** D.*