有以下程序 main() { union{ unsigned int n; unsigned char C; }ul; 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'; printf("%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

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

下面程序的输出结果是______。 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

下面程序的输出结果是______。 main() { unsigned a=32768; printf("a=%d\n",a); }A.a=32768B.a=32767C.a=-32767D.a=-1

已知字符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

有以下程序: #includestdio.h main( ) {unsigned char a=8,C; C=a3: printf("%d\n",c); } 程序运行后的输出结果是( )。A.32B.16C.1D.0

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);}

有以下程序: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 fun (unsigned w),w 是一个大于 10的无符号整数,若w是n(n≥2)位的整数,则函数求出w的后 n-1位的数作为函数值返回。例如:w值为5923,则函数返回923;若w值为923,则函数返回23。注意:部分源程序给出如下。请勿改动主函数main和其他函数中的任何内容,仅在函数fun 的花括号中填入所编写的若干语句。试题程序:include<conio. h>include<stdio. h>unsigned fun(unsigned w){}main(){unsigned x;clrscr ();printf("Enter a unsigned integernumber: ");scanf ("%u",x);printf("The original data is:%u\n",x);if (x<10)printf ("Data error! ");elseprintf ("The result :%u\n", fun(x) );}

下面程序的输出结果是【 】。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));}

下面程序的输出结果 ( ) main( ) {unsigned a=32768; printf("a=%d\n",a);}A.a=32768B.a=32767C.a=-32768D.a=-1

已知字符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 short a=65536;int b; printf("%d\n",b:a); }A.0B.1C.2D.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'; pfintf("%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