单选题
如下程序的输出结果是 #include<stdio.h> main() { char ch[2)[5]={"6937","8254"},*p[2]; int i,j,s=0; for (i=0;i<2;i++) p[i]=ch[i]; for (i=0;i<2;i++) for(j=0;p[i][j]>'/0';j+=2) s=10*s+p[i][j]-'0'; printf("%d/n",s);}
【正确答案】
C
【答案解析】[命题目的] 考查通过指针引用字符串数组中的元素。
[解题要点] 通过行指针p来实现数组元素的引用。
[考点链接] 用格式说明符%s进行整串输入与输出。