标题:2+2+14+4=24??不相信的进来看
取消只看楼主
Cihor
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2006-3-27
 问题点数:0 回复次数:0 
2+2+14+4=24??不相信的进来看

#include<stdio.h>

typedef struct
{
short unsigned dataIcon;
short unsigned dataNum;
char empty[14];
long dataDate;
}DAILYITEM;

main()
{ printf("%d=%d+%d+%d+%d\n",sizeof(DAILYITEM),
sizeof(short unsigned),
sizeof(short unsigned),
sizeof(char)*14,
sizeof(long));
return 0;
}

编译器 VC6 输出:
24=2+2+14+4
Press any key to continue

搜索更多相关主题的帖子: continue include return 编译器 
2006-04-09 12:22



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




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

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