diferent size of structs with bitfield members of the same and different type. Why?

后端 未结 0 1239
北荒
北荒 2020-12-07 18:06

Why does the sizes of these two structs differ?

#pragma pack(push, 1)
    struct WordA
    {
        uint32_t address           : 8;
        uint32_t data             


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题