main()
{ char *p[]={"3697","2584"};
int i,j; long num=0;
for(i=0;i<2;i++)
{j=0;
while(p[i][j]!='/0')
{ if((p[i][j]-'0') % 2)num=10*num+p[i][j]-'0';
j+=2;
}
}
printf(" % d/n",num);
}
程序执行后的输出结果是
A.)35
B.)37
C.)39
D.)3975
[单选题]有以下程序: main() {char*p[]={"3697","2584"}; int i,j;long num=0; for(i=0;i<2;i++) {j=0; while(p[i][j]!='/0') {if((p[i][j]-'0')%2)num=10*num+p[i][j]-'0'; j+=2; } } printf("%d/n",num); } 程序执行后的输出结果是( )。A.35B.37C.39D.3975
[单选题]有以下程序:main(){ char *p[]={"3697","2584"}; int i,j; long num=0; for(i=0;i<2;i++) {j=0;while(p[i][j]!=’/0’){ if((p[i][j]-’0’)%2= =0)num=10*num+p[i][j]-’0’; j+=2;} } printf("%d/n",num);}程序执行后的输出结果是( )。A.35 B.37C.39 D.28
[单选题]有以下程序:main(){ char *p[]={"3697","2584"}; int i, j; long num=0; for(i=0;i<2;i++) {j=0; while(p[i][j]!='/0') { if((p[il[j] -'0')%2) num=10*num+ p[i][j] -'0'; j+=2; } printf("%d/n", num);}程序执行后的输出结果是( )。A.35B.37C.39D.3975
[单选题]有以下程序 main() { char *p[]={"3697","2548"}; int i,j; long num=0; for(i=0;i<2;i++) {j=0; while(p[i][j]!='/0') { if((p[i][j]-'0')%2) num=10*num+p[i][j]-'0'; j+=2; } } printf("%d/n",num); } 程序执行后的输出结果上______。A.35B.37C.39D.3975
[单选题]有以下程序main( ){ char s[ ]="ABCD",*p;for(p=s+1;p<s+4;p++)printf("%s/n",p);}程序运行后的输出结果是A.ABCD BCD CD DB.A B C DC.B C DD.BCD CD D
[单选题]有以下程序: main() { char s[]="ABCD", *p; for( p=s+1;p<s+4;p++) printf("%s/n",p); } 程序运行后的输出结果是( )。A.ABCD BCD CD DB.A B C DC.B C DD.BCD CD D
[单选题]有以下程序:include main( ) char * p[ ] = {"3697" ,"2548" }; int i,j;long num =0有以下程序: #include <stdio.h> main( ) char * p[ ] = {"3697" ,"2548" }; int i,j; long num =0; for(i =0;i<2;i ++ ) { j =0; while(p[i][j]! ='/0') { if((p[i][j]-'0')%2) nu
[单选题]有以下程序 main() { char*p[10]={"abc",aabdfg","dedbe","abbd","cd"}; printf("%d/n",stxlen (p[4])); } 执行后输出结果是A.2B.3C.4D.5
[单选题]有以下程序: main() { char *p[10]={"abc","aabdfg","dcdbe","abbd","cd"); printf("%d/n", strlen(p[4])); } 执行后输出结果是( )。A.2B.3C.4D.5
[单选题]有以下程序 main() { char s[]="ABCD",*p; for(p=s+1;p<s+4;p++)printf("%s/n",p); } 程序运行后的输出结果是A.ABCD BCD CD DB.A B C DC.B C DD.BCD CD D