有下列程序: includestdi0.hvoidmain( ) {inta=S,b=1,t; t=(a2)|b;printf(stdi0.hvoidmain( ){inta=S,b=1,t;t=(a2)|b;printf(%d\n,t);}程序运行后的输出结果是( )。A.21B.11C.6D.1

有下列程序: include<stdi0.h>voidmain( ) {inta=S,b=1,t; t=(a<<2)|b;printf(&qu

有下列程序:

#include<stdi0.h>

voidmain( )

{inta=S,b=1,t;

t=(a<<2)|b;printf("%d\n",t);

}

程序运行后的输出结果是( )。

A.21

B.11

C.6

D.1


相关考题:

下列程序的输出结果是()。includestruct abc{int a, b, c, s;};main(){struct abc s[2] 下列程序的输出结果是( )。 #include <stdio.h> struct abc { int a, b, c, s;}; main() { struct abc s[2]={{1,2,3},{4,5,6}}; int t; t=s[0].a+s[1].b; printf("%d\n",t); }A.5B.6C.7D.8

有以下程序includemain(){int a=5,b=lt; t=(a 有以下程序 #include<stdio.h> main() { int a=5,b=lt; t=(a<<2)|b;printf("%d\n",t); } 程序运行后的输出结果是______。A.21B.11C.6D.1

有下列程序: #includestdi0.h voidmain( ) {inta=S,b=1,t; t=(a2)|b;printf("%d\n",t); } 程序运行后的输出结果是( )。A.21B.11C.6D.1

有下列程序: #includestdi0.h voidfun(int*S,intn1,intn2) { inti,j,t; i=n1;j=n2 while(ij){t=s[i];s[i]=s[j];s[j]=t;i++;j --;} } voidmain( ) { inta[10]={1,2,3,4,5,6,7,8,9,0),k; fun(a,0,3);fun(a,4,9);fun(a,0,9); for(k=0;k10;k++)printf(”%d”,a[k]);printf ("\n"); } 程序的运行结果是( )。A.0987654321B.4321098765C.5678901234D.0987651234

若下列程序执行后t的值为4,则执行时输入a,b的值范围是 #include ”stdio.h” main() { int a, b, s=1, t=1; scanf (”%d, %d”, a, b); if (a>0) s+=1; if (a>b) t+=s; else if(a==b) t=5; else t = 2*s; printf (”s=%d, t=%dn”, s,t); }

【填空题】下列程序的输出结果是 。 #define SQR(t) t*t void main() {int a = 1, b=2, s; s = SQR(a * b); printf("%d", s); }

计算1!+2!+3!+4!+5!编程如下,程序中下划线处应填写__。 #include <stdio.h> void main() { int i; int t=__,s=__; for(i=1;i<6;i++) { t=t*i; s=s+t; } printf("1!+2!+3!+4!+5!=%dn",s); }

【填空题】下列程序的输出结果是 。 #define SQR(t) t*t void main() {int a = 1, b=2, s; s = SQR(a + b); printf("%d", s); }

3、若下列程序执行后t的值为4,则执行时输入a,b的值范围是 #include ”stdio.h” main() { int a, b, s=1, t=1; scanf (”%d, %d”, a, b); if (a>0) s+=1; if (a>b) t+=s; else if(a==b) t=5; else t = 2*s; printf (”s=%d, t=%d\n”, s,t); }