首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

关于c语言的位段有关问题

2012-03-31 
关于c语言的位段问题!typedef struct{unsigned int a:7unsigned int b:10unsigned int c:18LONGLONG d:

关于c语言的位段问题!
typedef struct
{
unsigned int a:7;
unsigned int b:10;
unsigned int c:18;
  LONGLONG d:33;
}BIT_SEC;

sizeof(BIT_SEC)大小是16,请帮忙分析为什么是16字节?内部是如何对齐的?
谢谢~

[解决办法]
http://topic.csdn.net/u/20100108/20/83248e78-6e1f-4050-b2db-ea0c58b1a9c0.html?54997

看我的回答
[解决办法]
http://c.chinaitlab.com/skill/805309.html

热点排行