单选题:有以下程序main(){union{char ch[2];int d;}s;s.d=0x4321;printf("%x,

  • 题目分类:C语言
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
有以下程序
main()
{union
{char ch[2];
int d;
}s;
s.d=0x4321;
printf("%x,%x\n",s.ch[0],s.ch[1]);
}
在16位编译系统上,程序执行后的输出结果是( )。 A.21,43
B.43,21
C.43,00
D.21,00
参考答案:
答案解析:

The attitude of the author towards the research project is

The attitude of the author towards the research project isA.positive B.negativ C

查看答案

The word “affect” in Paragraph 6 could be best replaced by

The word “affect” in Paragraph 6 could be best replaced byA.“influence” B.“effec

查看答案

以下语句或语句组中,能正确进行字符串赋值的是( )

以下语句或语句组中,能正确进行字符串赋值的是( )A.char*sp;*sp="right!"; B.chars[10];s="right!"; C.chars

查看答案

有以下程序void swap(char *x,char *y){char t;t=*x; *x=*y; *y=t;}ma

有以下程序void swap(char *x,char *y){char t;t=*x; *x=*y; *y=t;}main(){char *s1="abc",

查看答案

以下能正确定义一维数组的选项是( )

以下能正确定义一维数组的选项是( )A.inta[5]={0,1,2,3,4,5}; B.chara[]={0,1,2,3,4,5}; C.chara={’A’

查看答案