单项选择题

下面程序
main()
int x=100, a=10, b=20, ok1=5, ok2=0;
if(a<b)
if(b!=15)
if(!ok1) x=1;
else if(ok2)x=10;
x=1;
printf("%d\n",x);
的输出是______。

A.-1
B.0
C.1
D.不确定的值
<上一题 目录 下一题>
热门 试题

单项选择题
以下程序的输出结果是______。 #include<stdio.h> #include<siring.h> fun(char *w,int n) char t,*s1,*s2; s1=w;s2=w+n-1; while(s1<s2) t=*s1++; *s1=*s2-; *s2=t; main() char *p; p= 1234567 ; fun(p,strlen(p)); puts(p);
A.1234567
B.7654321
C.1711717
D.7177171
单项选择题
下面程序的输出是______。 main() int x=3,y=6,a=0; while(x++!=(y-=1)) a+=1; if(y<x)break; printf( x=%d,y=%d,a=%d n ,x,y,
A.;
A) x=4,y=4,a=1B) x=5,y=5,a=1C) x=5
相关试题
  • 有以下程序,程序运行后的输出结果是___...
  • 下面程序的输出是______。 main()...
  • 若有程序 fun(int a,int b) static...
  • 以下程序运行后,输出结果为______。...
  • 有以下程序: #include<stdio.h> mai...