阅读背景:

如何确定/测量位域的结构大小?

来源:互联网 
#include <stdio.h>

typedef struct size
{
        unsigned int a:1;
        unsigned int b:31;
        unsigned int c:1;
} mystruct;

int main()
{
        mystruct a;
        printf("%d", sizeof(a));
        return 0;
}
#include <stdio.h>

typedef struct size
{
     



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: