只是一个简单的问题......关于结构成员对齐的标准是什么?例如,这个:
struct { uint8_t a; uint8_t b; /* other members */ } test;
保证b与struct start的偏移量为1?谢谢
c c++ standards ansi memory-alignment
ansi ×1
c ×1
c++ ×1
memory-alignment ×1
standards ×1