c结构位域

时间:2015-08-16 04:33:37

标签: c struct

代码段如下:

struct wer
{
unsigned int a:5;
unsigned int:0;
unsigned int b:3;
unsigned int c:2;
unsigned int:0;
}v;

我知道所有这些都是打包位字段,但是如何找到v所需的存储空间。

0 个答案:

没有答案
相关问题