有以下程序: main() { int a[]={1,2,3,4,5,6,7,8,9,0},*p; for(p=a;p<a+10,p++)printf("%d,",*p); } 程序运行后的输出结果是 ______。
A.1,2,3,4,5,6,7,8,9,0,
B.2,3,4,5,6,7,8,9,10,1,
C.0,1,2,3,4,5,6,7,8,9,
D.1,1,1,1,1,1,1,1,1,1,
第1题:
有以下程序: main() {char s[]="159",*p; p=s; printf("%c",*p++);printf("%c",*p++); } 程序运行后的输出结果是 ______。
A.15
B.16
C.12
D.59
第2题:
有以下程序 main() { char s[]="159",*p; p=s; printf ("%c",*p++);printf("%c",*p++); } 程序运行后的输出结果是______。
A.15
B.16
C.12
D.59
第3题:
有以下程序main(){ int a[]={1,2,3,4,5,6,7,8,9,0),*p; for(p=a;p<a+10;p++) printf(“%d,”,*p);} 程序运行后的输出结果是
A.1,2,3,4,5,6,7,8,9,0,
B.2,3,4,5,6,7,8,9,10,1,
C.0,1,2,3,4,5,6,7,8,9,
D.1,1,1,1,1,1,1,1,1,1,
第4题:
有以下程序 main() {int a[]={1,2,3,4,5,6,7,8,9,0},*P; for(p=a;p<a+10;p++)printf("%d,",*p); } 程序运行后的输出结果是
A.1,2,3,4,5,6,7,8,9,0,
B.2,3,4,5,6,7,8,9,10,1,
C.0,1,2,3,4,5,6,7,8,9,
D.1,1,1,1,1,1,1,1,1,1,
第5题:
有以下程序:#include <stdio. h>main( ){ int a[ ] = { 1,2,3,4,5,6,7,8,9,0} , * p; for(p =a;p<a+10;p++) printf("%d," , *p); }程序运行后的输出结果是( )。
A.1,2,3,4,5,6,7,8,9,0,
B.2,3,4,5,6,7,8,9,10,1,
C.0,1,2,3,4,5,6,7,8,9,
D.1,1,1,1,1,1,1,1,1,1,