更多“下面程序的输出结果是()。 include <stdi0.h…”相关的问题
第1题
下面程序的输出结果是 。 #include <stdio.h> void main() { int m=0,n=0; while(m<5) m++; n++; printf("m="%d,n=%d\n",m,n);">
点击查看答案
第2题
下面程序的运行结果是______。 include<stdio.h> main() { union { int i[2]; long k; char c[4]; }t,*s=&t; s->i[0]=0x12; s->i[1]=0x34; print f("%1x\n",s->k); }
点击查看答案
第3题
运行下面程序后,输出是____. #include <stdio.h> void main( ) { int k=-3; if (k<=0) printf("****\n"); else printf("####\n") }> A、####
B、****
C、####****
D、有语法错误不能通过编译
点击查看答案
第4题
下述程序的输出结果是_______。 #include <stdio.h> void main() { int x=0,y=0,i; for(i=1;;++i) { if(i%2==0) {x++;continue;} if(i%5==0) {y++;break;} } printf (" %d,%d",x,y); }
点击查看答案
第5题
以下代码: <block wx:if="{{true}}"> <view> view1 </view> <view> view2 </view> </block> 的输出结果为( )
A、view1
B、view2
C、view1 和 view2
D、没有输出
点击查看答案
第6题
以下程序的输出结果是#include int fun(int x){ static int m=0; return(m *=x);}main(){ int s,i; for(i=l;i<=3;i++) s=fun(i); printf("%d\n",s);}
点击查看答案
第7题
#include <stdio.h> fun(int x) { if(x/2>0) fun(x/2); printf("%d ",x); } void main() { fun(6); printf("\n"); } 以上程序运行后的输出结果为( )。
A、6 3 1
B、1 3 6
C、6 5 4
D、4 5 6
点击查看答案
第8题
有以下程序: #include <stdio.h> int fun (int a,int b,int c) { c=a *b; } main() { int c; fun(2,3,c); printf(“%d\n”.c); } 程序的输出结果是_______.
点击查看答案
第9题
下列程序的运行结果是( ) #include <stdio.h> void fun(int x); int main() { fun(7); printf(""); return 0; } void fun(int x) { if(x/2>1) fun(x/2); printf("%2d",x); }
点击查看答案
第10题
以下程序的运行结果是4,2。 #include <stdio.h> void func(int a,int b); void main() { int a=4,b=2; func(a,b); printf("%d,%d",a,b); } void func(int a,int b) { int t; t=a; a=b; b=t; }
点击查看答案