Storage occupied by a union doesn't match as expected

前端 未结 0 358
抹茶落季
抹茶落季 2020-12-12 17:33

This union contains uint32, uint16, and int8. Using sizeof() function I\'ve found they occupied 4, 2, and 1 byte. So the union should contain 7 bytes. But it showing that it

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