有下列程序:#includestdi0.hvoidmain( ){chara=4;printf(%d\n,a=a1);}程序的运行结果是( )。A.40B.16C.8D.4

有下列程序:

#include<stdi0.h>

voidmain( )

{chara=4;

printf("%d\n",a=a<<1);

}

程序的运行结果是( )。

A.40

B.16

C.8

D.4


相关考题:

下列程序的输出结果是()。includevoidp(int*x){printf("%d",++*x);}voidmain(){int y=3 下列程序的输出结果是( )。#include<stdio.h>voidp(int*x){printf("%d",++*x);}voidmain(){int y=3;p(y);}A.3B.4C.2D.5

有下列程序:#includestdi0.hstructst{intx,Y,date[2]={1,10,2,20};voidmain( ){structst*p=date;printf(%d,,p-y);printf(%d\n,(++p)-x);}程序的运行结果是( )。A.10,1B.20,1C.10,2D.20,2

有下列程序:#includestdi0.hintfun(inta.intb){if(b==0)relurna;elsereturn(fun(--a,--b));}voidmain( ){printf(%d\n,fun(4,2));}程序的运行结果是( )。A.1B.2C.3D.4

有下列程序:#includestdi0.hintb=2;intfun(int*k){b=*k+b;return(b);)voidmain( ){inta[10]={1,2,3,4,5,6,7,8},i;for(i=2;i4;i++){b=fun(&a[i])+b;printf(%d,b);}printf(\n);}程序运行后的输出结果是( )。A.1012B.810C.1028D.1016

有下列程序: #includestdi0.h structord {intx,y;}dt[2]={1,2,3,4}; voidmain( ) {structord*p=dt; printf("%d,",++P-x);printf("%d,",++P -y); } 程序的运行结果是( ).A.1,2B.2,3C.3,4D.4,1

下列程序的输出结果是()。 include voidp(int*x) {printf("%d",++*x); } voidmain() {i 下列程序的输出结果是( )。#include<stdio.h>voidp(int*x){printf("%d",++*x);}voidmain(){int y=3;p(y);}A.3B.4C.2D.5

有下列程序: #includestdi0.h intfun(intx,inyy) {if(x==y)return(x); elsereturn((x+y)/2); } voidmain() {inta=4,b=5,C=6; printf("%d\n",fun(2*a,fun(b,c))); } 程序运行后的输出结果是()。A.3B.6C.8D.12

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

有下列程序: #includestdi0.h voidmain( ) {char*a[]={"abed","ef","gh","ijk");inti; for(i=0;i4;i++)printf("%C",*a[i]); } 程序运行后的输出结果是( )。A.aegiB.dfhkC.abedD.abcdcfghijk

有下列程序: #includestdi0.h voidmain( ) {inta[]={1,2,3,4),y,*p=&a[3]; --p;y=*p;printf("y=%d\n",y); } 程序的运行结果是( )。A.y=0B.y=1C.y=2D.y=3

有下列程序: #includestdi0.h voidmain( ) {chara=4; printf("%d\n",a=a1); } 程序的运行结果是( )。A.40B.16C.8D.4

有下列程序: #includestdi0.hintf(intx,inty) {return((y-x)*x);} voidmain( ) {inta=3,b=4,c=5,d; d=f(f(a,b),f(a,c)); printf("%d\n",d); } 程序运行后的输出结果是( )。A.10B.9C.8D.7

有下列程序: #includestdi0.h voidmain( ) {inti=5; do {if(i%3=1) if(i%5==2) {printf("*%d",i);break;} i++: }while(i!=O); printf("\n"); } 程序的运行结果是( )。A.*7B.*3*5C.*5D.*2*6

以下程序段运行后屏幕输出为()chara[]=abc\0mis;printf(%d,strlen(a)); A.5B.8C.3D.4

有下列程序: #includestdi0.h intb=2: intfun(int*k) {b=*k+b;return(b);} voidmain() {inta[1O]={1,2,3,4,5,6,7,8},i; for(i=2;i4;i++){b=fun(&a[i])+b;printf ("%d",b);} printf("\n"); } 程序运行后的输出结果是( )。A.1012B.810C.1028D.1016

有下列程序: includestdi0.hvoidfun(char*s){while(*s){if(*s%2==(1)printf(%Cstdi0.hvoidfun(char*s){while(*s){if(*s%2==(1)printf(%C,*s);s+十:}}voidmain( ){chara[]={good);fun(a);printf(n);}注意:字母a的ASCIl码值为97,程序运行后的输出结果是( )。A.dB.goC.godD.good

有下列程序: #includestdi0.h intfun(inta.intb) {if(b==0)relurna; elsereturn(fun(--a,--b)); } voidmain( ) {printf("%d\n",fun(4,2));} 程序的运行结果是( )。A.1B.2C.3D.4

有下列程序: #includestdi0.h voidmain( ) {intx=1,y=2,z=3; if(xy) if(yz)print{("%d",++z); elseprintf("%d",++y); printf(”%d\n”,x++); } 程序的运行结果是( )。A.331B.41C.2D.1

有下列程序: #includestdi0.h voidmain( ) { intx=8; for(;x0;x--) { if(x%3){printf("%d,",x--),continue;} printf(”%d,”,--x); } } 程序的运行结果是( )。A.7,4,2B.8,7,5,2C.9,7,6,4D.8,5,4,2

有下列程序:#includestdi0.hintfun(intx,inyy){if(x==y)return(x);elsereturn((x+y)/2);}voidmain(){inta=4,b=5,C=6;printf(%d\n,fun(2*a,fun(b,c)));}程序运行后的输出结果是()。A.3B.6C.8D.12

有下列程序: #includestdi0.h voidmain( ) {inti,j; for(i=3;i=1;i--) {for(j=1;j=2;j++)printf(”%d”,i+j); printf("\n"); } } 程序的运行结果是( )。A.234B.432 345543 34C.23D.45 3434 2323

有下列程序: #includestdi0.h voidfun(char*s) {while(*s) {if(*s%2==(1)printf("%C",*s); s+十: } } voidmain( ) {chara[]={"good"); fun(a);printf("n"); } 注意:字母a的ASCIl码值为97,程序运行后的输出结果是( )。A.dB.goC.godD.good

有下列程序: include voidmain( ) {inti=5; do {if(i%3=1) if(i%5==2) {printf("*%d",i);break;} i++: }while(i!=O); printf("\n"); } 程序的运行结果是( )。A.*7B.*3*5C.*5D.*2*6

下列程序运行结果是( )。defineA2defineAAA+A/2voidmain(void){printf(“%d,”,AA);printf(“%d\n”,5*AA);} A.3,11B.3,15C.2,10D.8,40

以下程序段运行后屏幕输出为() chara[]="abc/0mis"; printf("%d",strlen(a));A、5B、8C、3D、4

单选题有以下程序#includevoidfun2(chara,charb){ printf(%c%c,a,b);}chara='A',b='B';voidfun1(){ a='C'; b='D';}main(){ fun1(); printf(%c%c,a,b); fun2('E','F');}程序的运行结果是(  )AC D E FBA B E FCA B C DDC D A B

单选题以下程序段运行后屏幕输出为() chara[]="abc/0mis"; printf("%d",strlen(a));A5B8C3D4