本帖最后由 nyf1972 于 2015-5-21 01:00 编辑
struct StuctByte
{
unsigned B0 :1;
unsigned B1 :1;
unsigned B2 :1;
unsigned B3 :1;
unsigned B4 :1;
unsigned B5 :1;
unsigned B6 :1;
unsigned B7 :1;
};
struct StuctByte StuctByte_DO;
uchar i;
i=sizeof(StuctByte_DO);
--------------------
运行结果i=2;
谁能给解释一下???
KEIL uv4 编译
如何能让sizeof(StuctByte_DO)=1???
|