标题:帮忙看一下
取消只看楼主
cosixu
Rank: 1
等 级:新手上路
帖 子:68
专家分:0
注 册:2004-10-11
 问题点数:0 回复次数:0 
帮忙看一下
main()
{int k;
 struct st
  {int x;
   int y;
   }b1;
 union mm
  {char s[4];
   struct st b1;
   }one;
   one.b1.x=0x4142;
   one.b1.y=0x6162;
   for (k=0;k<4;k++)
   printf("%c",one.s[k]);
}
结果为什么是BAba呀?
请高手解释一下!
谢了!!!
2004-10-11 16:34



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-6353-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.731911 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved