如下程序: #include<iostream.h> void main() { char str[2][5]={"1234","5678"),*p[2]; int i,j,s=0; for(i=0;i<2;i++)p[i]=str[i]; for(i=0;i<2;i++) for(j=0;p[i][j]>'/0';j+=2) s=10*s+p[i][j]-'0'; cout<<s; } 该程序的输出结果是( )。
A.1357
B.2468
C.3556
D.23678
[单选题]有如下程序includevoid main( ){char ch[2][5]={"6937","8254"},*p[2];int i,j,s=0有如下程序 #include<iostream.h> void 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
[单选题]有如下程序includevoid main(){char ch[2][5]=={"6937","8254"},*p[2];int i,j,s=0有如下程序 #include<iostream.h> void 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+
[单选题]有如下程序:includevoid main( ){char ch[2] [5] ={"6937","8254"},* p[2] ;int i,有如下程序: #include<iostream.h> void 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';
[单选题]有如下程序includevoid main(){char ch[2][5]={"6937","8254"},*p[2];int i,j,s=0;有如下程序 #include<iostream.h> void 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
[单选题]有如下程序includevoid main( ){char ch[2][5]={"6937","8254"},*p[2];int i,j,s=0有如下程序 #include<iostream.h> void 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
[单选题]下列程序的输出结果是includevoid main( ){char*str="12123434";int xl=0,x2=0,x3=下列程序的输出结果是 #include<iostream.h> void main( ) {char*str="12123434"; int xl=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!='/0';i++) switch(str[i]) {case'1':x4++; case'2':x3++; case'3'
[单选题]下列程序的输出结果是includevoid main(){char*str="12123434"; int x1=0,x2=0,x3=下列程序的输出结果是 #include<iostream.h> void main() { char*str="12123434"; int x1=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!=‘/0’;i++) switch(str[i]) { case'l':x4++; case'2':X3++; case'3':
[单选题]下列程序的输出结果是includevoid main(){char*str="12123434";int x1=0,x2=0,x3=0下列程序的输出结果是 #include<iostream.h> void main() {char*str="12123434"; int x1=0,x2=0,x3=0,x4=0,i; for(i=0;str[i]!='/0';i++) switch(str[i]) {case'1':x4++; case'2':X3++; case'3':
[单选题]有以下程序:includeincludevoid main( ){char * p="abcde/0fghjik/0";c有以下程序: #include<string.h> #include<iostream.h> void main( ) { char * p="abcde/0fghjik/0"; cout < < strlen(p) ;} 程序运行后的输出结果是A.12B.15C.6D.5
[单选题]下列程序的运行结果为()。includevoid abc(char*str){int a,b,i,j; for(i=j=0;str[i]!=下列程序的运行结果为( )。 #include<stdio.h> void abc(char*str) { int a,b,i,j; for(i=j=0;str[i]!='/0';i++) if(str[i]!='a') str[j++]=str[i]; str[j]='/0'; } void main() { char str[]="abcd