当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

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


有以下程序:main(){ union { char ch[2]; Int d; } s; s.d=0x4321; printf("%x,%x ",s.ch[0],s.ch[1]);}在16位编译系统上,程序执行后的输出结果是()。A.21,43 B.43,21 C.43,00 D.21,00

参考答案
您可能感兴趣的试题
  • 有以下程序#include <stdio.h>union pw{ int i; char ch[2];}a;main(){ a.ch[0]=13;a.

  • 有以下程序main(){ char a[7]="a0a0"; int i,j; i=sizeof(a); j=strlen(a); printf("%d %d

  • 有以下程序#include "stdio.h"main(){ char str[]="tomeetme",str1[]="toseeyou"; char *p=str,*

  • 有以下程序:main(){ char a[7]= "a0OaO";int i,j;i=sizeof(a);j=strlen(a);printf("%d%d ",i

  • 以下程序的输出结果是typedef union{long x[2] int y[4]; char z[8]; } MYTYPE;MYTYPEthem;main(

  • 有以下程序main(){union{unsigned intn; unsigned charC; }ul;u1.C=A;printf(\%c u1.n);}执