会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
helloweworld
博客园
首页
新随笔
管理
2013年9月9日
位域的sizeof(二)
摘要: #include using namespace std; int main(void){ struct test2 { char a:2; char b:2; int c:2; char d:2; }t2; memset(&t2, 0, sizeof(t2)); t2.a = 3; t2.b = 2; t2.c = 3; t2.d = 3; char *p = (char*)&t2; ...
阅读全文
posted @ 2013-09-09 16:23 helloweworld
阅读(275)
评论(0)
推荐(0)
编辑