![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
[单选题]
下面程序段的运行结果是( )。 int n=0; while(n++<=2) printf("%d",n);
A.2
B.3
C.123
D.有语法错
查看答案
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
A.2
B.3
C.123
D.有语法错
A.程序段有语法错
B.3,5,3
C.3,5,5
D.3,5,7
A.程序段有语法错
B.3,5,3
C.3,5,5
D.3,5,7
A.8
B.12
C.4
D.7
char a[7]="abcdef",b[4]="ABC";
strcpy(a,b) ;
printf("%c",a[5]);
(A)空格 (B)\0 (C)e (D)f
int a=3,b=5,c=7;
if(a>b) a=b; c=a;
if(c!=a) c=b;
printf("%d,%d,%d\n",a,b,c);
其输出结果是
A) 程序段有语法错
B)3 , 5 , 3
C)3 , 5 , 5
D)3 , 5 , 7