写出下列程序运行后的输出结果。
[单选题]阅读以下程序,写出程序运行后的输出结果是 ______。includevoid main(){ char a[]={阅读以下程序,写出程序运行后的输出结果是 ______。 #include<iostream.h> void main(){ char a[]={'H','e','r','1',‘o’,'/0'}; int i, j; i=sizeof(a)/sizeof(char); j=strlen(a) cout<<i<<' '<<j; }A.6 6B.5 6C.1
[单选题]写出下列程序段的输出结果( )。main(){int x=5; int y=10;printf("%d/n",x++); printf("%d/n",++y); }A.5 B.6 C.6 D.5 10 10 11 11
[主观题]写出下列程序的运行结果。 fun(int a, int b) { if(a>b) return (a); Else return (b); } main { int x=3,y=8,z=6,r; r=fun(fun(x,y),2*z); printf(“%d/n”,r); }
[主观题]7 写出下列程序的运行结果。unsigned int i=3;cout<
[主观题]6 写出下列程序在X86 上的运行结果。struct mybitfields{unsigned short a : 4;unsigned short b : 5;unsigned short c : 7;}testvoid main(void){int i;test.a=2;test.b=3;test.c=0;i=*((short *)&test);printf("%d/n",i);}
[主观题]8 写出下列程序所有可能的运行结果。int a;int b;int c;void F1(){b=a*2;a=b;}void F2(){c=a+1;a=c;}main(){a=5;//Start F1,F2 in parallelF.1(); F2();printf("a=%d/n",a);}
[单选题]下列程序:运行后程序输出的结果为()A . a=40b=30B . a=30b=40C . a=30b=70D . a=70b=40
[单选题]下列程序运行后,输出结果为( )。A. 3B. 4C. 5D. 8
[单选题]下列程序段运行后,输出结果为()A . 42B . 39C . 6D . 1
[填空题] 写出以下程序的输出结果()