有以下程序 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'; pfintf("%c\n",u1.n); } 执行后输出结果是

A.产生语法错

B.随机值

C.A

D.65


相关考题:

有以下程序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));}

有以下程序main(){ union{ unsigned int n;unsigned char c;}ul;ul.c='A';printf("%c\n",ul.n);}执行后输出结果是A.产生语法错B.随机值C.AD.65

求任意一个数(用16位二进制码表示)的补码。 main( ) { unsigned int a; 【】 ; scanf("%O", a);printf("%o\n",getbits(a));}unsigned int getbits(value)unsigned int value;{unstgned int z;z=【 】 ;if(z==0100000)【 】 ;elsez=value;return(z);}

以下程序的输出结果是【 】。main(){ unsigned short a=65536; int b;printfC%d\n",b=a);}

下面程序的输出结果是______。 unsigned fun(unsigned num) { unsigned k=1; do{ k*=num%10; num/=10; }while(num); return(k); } main() { unsigned n=26; printf("%d\n",fun(n)); }A.0B.4C.12D.无限次循环

以下程序的输出结果是______。 main() { unsigned short a=65536;int b; printf("%d\n",b=a); }A.0B.1C.2D.3

有以下程序: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

已知字符0的ASCⅡ码为十六进制数30,下面程序的输出是______。 main() { int i; union{unsigned char c;unsigned int i[4];}z; z.i[0]=0x39;z.i[1]=0x36; printf("%d\n",z.c); }A.56B.57C.58D.59

以下程序的输出结果是【】。 include unsigned fun (unsigned num) {unsigned k=1; do{ 以下程序的输出结果是 【 】 。include<iostream.h>unsigned fun (unsigned num){unsigned k=1;do{k*=num%10;num/=10;} while(num);return k;}void main( ){ unsigned n=26;cout <<fun(n) <<end1

下面程序的运行结果为【】。 include void main() {unsigned char value=127;int tota 下面程序的运行结果为【 】。include <iostream.h>void main(){unsigned char value=127;int total=100;value++;total+=value;cout<<total<<end1;}A) 227 B) 100 C) 127 D) 27

以下程序的功能是进行位运算: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

已知小写字母a的ASCII码为97,大写字母A的ASCII码为65,以下程序的结果是______。 main() { unsigned int a=31,b=66; pfintf("%c\n,a|b); }A.66B.98C.bD.B

有以下定义和语句,则sizeof(a.share)的值是( )。struct date{ unsigned int day;unsigned int mouth;unsigned int year;union{int share1;float share2;}share;}a;

有以下程序:main(){ union{ unsigned int n; unsigned char c; }u1; u1.c='A'; printf("%c\n",u1.n);}执行后输出结果是( )。A.产生语法错B.随机值C.AD.65

若输入173253,则以下程序的运行结果为______。main(){ unsigned a; int n1,n2; scanf("%o",a); printf("%o",getbits(a,4,8));}getbits(value,n1,n2)unsigned value;int n1,n2;{ unsigned z; z=~0; z=(z>>n1)(z<<(16-n2)); z=valuez; z=z>>(16-n2); return(z);}A.173253B.6C.8D.173

下面程序的输出结果是【 】。unsigned fun6(unsigned num){ unsigned k=1;do { k*=hum%10;num/=10;}while(num);return(k); }main(){ unsigned n=26;printf("%d\n",fun6(n));}

已知字符0的ASCII码为十六进制的30,现有程序如下:includemain(){union{ unsigned char 已知字符0的ASCII码为十六进制的30,现有程序如下: #include <stdio.h> main() { union{ unsigned char c; unsigned int i[4]; }z; z.i[0]=0x39; z.i[1]=0x36; printf("%c\n",z.c); } 此程序的输出结果是( )。A.6B.9C.0D.3

有以下程序: 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'; 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

在C程序中,设一表达式中包含有int,long,char和unsigned类型的变量和数据,这四种类型数据的转换规则是()。A、int→unsigned→long→charB、char→int→long→unsignedC、char→int→unsigned→longD、int→char→unsigned→long