A.5 4 3 2 1
B.0 l 2 3 4 5
C.1 2 3 4 5
D.5 4 3 2 1 0
[单选题]以下程序的输出结果是 ( ) main( ) { int w=5;fun(w);printf("/n");} fun (int k) { if (k>0) fun (k-1); printf("%d",k); }A.5 4 3 2 1B.0 1 2 3 4 5C.1 2 3 4 5D.5 4 3 2 1 0
[单选题]下列程序的输出结果是______。main(){ int w=5;fun(w);printf("/n");}fun(int k){ if (k>0) fun(k-1); printf("%d",k);}A.5 4 3 2 1B.0 1 2 3 4 5C.1 2 3 4 5D.5 4 3 2 1 0
[单选题]以下程序的输出结果是 ( ) main( ) { char w[] [10]={"ABCD","EFGH","IJKL","MNOP"},k; for (k=1,k<3;k+ +)printf("%s/n",w[k]); }A.ABCD FGH KLB.ABC EFG IJ MC.EFG JK OD.EFGH IJKL
[单选题]以下程序的输出结果是______。main(){ char w[] [10]={"ABCD","EFGH","IJKL","MNOP"),k; for(k=1;k<3;k++) printf("%s/n",w[k]);}A.ABCD FGH KL MB.ABCD EFG IJC.EFG JK OD.EFGH UKL
[单选题]有以下程序的输出结果是( ) void f(int v , int w) { int t; t=v;v=w;w=t; } main( ) { int x=1,y=3,z=2; if(x>y) f(x,y); else if(y>z) f(y,z); else f(x,z); printf(“%d,%d,%d/n”,x,y,z);}A.1,2,3B.3,1,2C.1,3,2D.2,3,1
[单选题]以下程序的输出结果是______。 main() { int m=5; if(m++>5) printf("%d/n",m); else printf("%d/n",m--); }A.7B.6C.5D.4
[主观题]以下程序运行后的输出结果是int a=5;fun(int b){ static int a=10; a+=b++; printf("%d, ",a);}main{ int c=20; fun(c); a+=c++; printf("%d/n",a);}
[单选题]下面程序的运行结果是includevoid main( ){int i=1;while(i<=8)if ( £«£«i%3!=2)cont下面程序的运行结果是 #include<iostream.h> void main( ) { int i=1; while(i<=8) if ( ++i%3!=2)continue; else cout<<i; }A.25B.36C.258D.369
[单选题]以下程序输出结果是 ______。includevoid fun(int x,int y,int z){z=x£«y;}void main以下程序输出结果是 ______。 #include<iostream.h> void fun(int x,int y,int z){z=x+y;} void main() { int a=10; fun (2,2,a); cout<<a; }A.0B.4C.10D.无定值
[单选题]以下程序的输出结果是()。#include main(){int a=2,c=5;printf("a=%%d,b=%%d/n",a,c);}A . a=%2,b=%5B . a=2,b=5C . a=%%d,b=%%dD . a=%d,b=%d