有以下程序main (){ unsigned char a, b, c; a=0x3; b=a|0x8; c=b<<1; printf ("~%d% d\n" ,b, C) ;} 程序运行后的输出结果是A.-11 12B.-19C.12 24D.11 22
有以下程序main (){ unsigned char a, b, c; a=0x3; b=a|0x8; c=b<<1; printf ("~%d% d\n" ,b, C) ;} 程序运行后的输出结果是
A.-11 12
B.-19
C.12 24
D.11 22
相关考题:
有以下程序main( ){ unsigned char a=2,b=4,c=5,d;d=a|b; d=c; printf("%d\n",d); }程序运行后的输出结果是A)3B)4C)5D)6
有以下程序main() {unsigned char a=2,b=4,c=5,d; d=a|b; d=c; printf(“%d\n”,d); } 程序运行后的输出结果是( )。A.3B.4C.5D.6
以下程序的输出结果是【18】。unsigned fun6(unsigned num){ unsigned k=1;do{k *=num;num/=10;}while (num);return k;}main(){ unsigned n=26;printf("%d\n", fun6(n));}
有以下程序:includevoid fun(char *c,intD){*c=*c+1;d+=1;printf("%c,%c",*c,D;}main( 有以下程序: #include<stdio.h> void fun(char *c,intD){ *c=*c+1; d+=1; printf("%c,%c",*c,D;} main() { char a='F',b='f'; fun(b,A); printf("%c,%c\n",a,B);} 程序的输出结果为( )。A.g,GF,gB.g,FF,gC.G,fF,GD.f,gf,g
有以下程序: main() { unsigned char a,b,c; a=0x3; b=a|0x8; c=b<<1; printf("%d%d\n",b,C); } 程序运行后的输出结果是( )。A.-11 12B.-6 -13C.12 24D.11 22
有以下程序:includevoid fun(char**p){++P;printf("%s\n",*p);}main()char*a[]={"Morn 有以下程序: #include<stdio.h> void fun(char**p) { ++P;printf("%s\n",*p);} main() char*a[]={"Morning","Afternoon","Evening","Night"}; fun(A); } 程序的运行结果是( )。A.AfternoonB.fternoonC.MorningD.oring
有以下程序main(){ union{ unsigned int n;unsigned char c;}ul;ul.c='A';printf("%c\n",ul.n);}执行后输出结果是A.产生语法错B.随机值C.AD.65
有以下程序:include main( ){ unsigned int a; int b=-1;a=b;printf(" % u", a);程序 有以下程序: #include <stdio. h> main( ) { unsigned int a; int b=-1; a=b; printf(" % u", a);程序运行后的输出结果是( )。A.-1B.65535C.32767D.-32768
有以下程序:include main ( ){char a :'a',b; printf( "% c," , + + a); printf("%c 有以下程序: #include <stdio. h> main ( ) { char a :'a',b; printf( "% c," , + + a); printf("%c \n" ,b =a++); }程序运行后的输出结果是( )。A.b,bB.b,cC.a,bD.a,c
有以下程序 main() { unsigned char,a,b,c; a=0x3;b=a|0x8;c=b<<1; printf(“%d%d\n”,b,c); } 程序运行后的输出结果是A.-11 12B.-19C.12 24D.11 22
有以下程序 include main() { char a=4; printf("%d/n,a=a 有以下程序 #include <stdio.h> main() { char a=4; printf("%d/n,a=a<<1); } 程序的运行结果是______。A.40B.16C.8D.4
以下程序的功能是进行位运算:include main( )unsigned char a,b;a =7∧3; b = ~43 以下程序的功能是进行位运算:#include <stdio.h>main( ) unsigned char a,b; a =7∧3; b = ~43; printf("% d %d \n" ,a,b);}程序运行后的输出结果是( )。A.4 3B.7 3C.7 0D.4 0
有以下程序: #includestdio.h main( ) {unsigned char a=8,C; C=a3: printf("%d\n",c); } 程序运行后的输出结果是( )。A.32B.16C.1D.0
有以下程序: main() { unsigned char a,b; a=4 | 3; b=4 3; printf("%d %d\n",a,b); } 执行后输出结果是( )。A.7 0B.0 7C.1 1D.43 0
有以下程序 main( ) { unsigned char a,b; a=4|3; b=43; printf(“%d %d\n”,a,b(; } 执行后输出结果是( )A.7 0B.0 7C.1 1D.43 0
有以下程序:main(){ union{ unsigned int n; unsigned char c; }u1; u1.c='A'; printf("%c\n",u1.n);}执行后输出结果是( )。A.产生语法错B.随机值C.AD.65
有以下程序#includestdio.hmain(){unsigned char a=8,c:c=a3;printf(“%d\n”,c):}程序运行后的输出结果是A.32B.16C.1D.O
有以下程序: main() {unsigned char a=2,b=4,c=5,d; d=a|b;d&=c;printf(“%d\n",D);} 程序运行后的输出结果是( )。A.3B.4C.5D.6
以下程序的结果是 ( ) main( ) { unsigned int a=3,b=10; printf("%d\n",a>1); }A.1B 以下程序的结果是 ( )main( ){ unsigned int a=3,b=10;printf("%d\n",a<<2|b>>1);}A.1B.5C.12D.13
有以下程序:include main(){unsigned char a,b; a=413; b=43;printf("%d%d\n",a, 有以下程序: #include <stdio.h> main() { unsigned char a,b; a=413; b=43; printf("%d%d\n",a,b); } 执行后的输出结果是( )。A.7 0B.0 7C.1 1D.43 0
有以下程序: main() { union{ unsigned int n; unsigned char c; }u1; u1.c='A'; printf("%c\n",u1.n); } 执行后输出结果是( )。A.产生语法错误B.随机值C.AD.65
有以下程序 main() { union{ unsigned int n; unsigned char c; }ul; u1.c='A'; cout<<u1.n<<endl; } 执行后输出结果是A.产生语法错B.随机值C.AD.65
有以下程序 main() { union{unsigned int n; unsigned char c; }ul; u1.C='A'; pfintf("%c\n",u1.n); } 执行后输出结果是A.产生语法错B.随机值C.AD.65
有以下程序 main() { union{ unsigned int n; unsigned char C; }ul; u1.C='A'; printf("%c\n",u1.n); } 执行后输出结果是A.产生语法错B.随机值C.AD.65
有以下程序 main() {unsigned char a,b; a=4|3; b=43; printf("%d%d\n",a,b) ; } 执行后输出结果是A.70B.7C.11D.430
下面程序的运行结果是______。main(){unsigned a=3,b=10; printf("%d\n",a>1);}A.3B.10C.13 下面程序的运行结果是______。 main() { unsigned a=3,b=10; printf("%d\n",a<<2|b>>1); }A.3B.10C.13D.14
设有一个名为file1源程序,且已知命令行为:FILE1BEIJINGSHANGHAI,则可得到以下运行结果BEIJINGSHANGHAI的程序为()A、main(intargc,char*argv[]){while(--argc1)printf("%s/n",*++argv);}B、main(intargc,char*argv[]){while(argc--=1)printf("%s/n",*++argv);}C、main(intargc,char*argv[]){while(argc--1)printf("%s/n",*++argv);}D、main(intargc,char*argv[]){while(argc1)prinif("%s/n",*++argv);}