![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
[单选题]
以下程序的输出结果是()。main() {int a=100,x=10,y=20,ok1=5,ok2=0; if(x<y) if(y!=10) if(!ok1) a=1; else if(ok2) a=10; a=-1; printf("%d\n",a );}
A.值不确定
B.1
C.0
D.-1
查看答案
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
A.值不确定
B.1
C.0
D.-1
A.3
B.2
C.1
D.0
A.d=25
B.d=20
C.d=15
D.d=10
A.2,1,1
B.1,2,1
C.2,2,2
D.2,2,1
A.-1
B.0
C.1
D.2
A.2,2,2
B.2,2,1"
C.2,1,1
D.1,2,1
A.x+y+z=48
B. x+y+z=35
C. x+z=35
D. 不确定值
A.sum is: 5
B.sum is:15
C.sum is:14
D.sum is:10
A.编译错误
B.x>y
C.x=y
D.x
A.出错
B.6
C.3
D.2
#include <string.h> void f(char *s,char *t) {char k; k=*s; *s=*t;*t=k; s++;t--; if(*s)f(s,t); } main() {char str[10]="abcdefg",*p; p=str+strlen(str)/2+1; f(p,p-2); printf("%s\n",str); } 程序运行后的输出结果是()。
A.gfedcba
B.gbcdefa
C.abedcfg
D.abcdefg
A.400
B.324
C.256
D.186