Padding in structures in C
I don’t think there’s an advantage for any of this structures. There is one(!) constant in this equation. The order of the members of the struct is guaranteed to be as declared. So in case like the following, the second structure might have an advantage, since it probably has a smaller size, but not in … Read more