标签: c struct
我试图理解为什么我的sizeof为下面的结构错误。我想要的答案应该是12但我得到16.你能解释一下我做错了吗?
struct dns_answer_section { uint16_t name; uint16_t type; uint16_t class; uint32_t ttl; uint16_t data_len; };