0
Why student1is not 8 and student4 is not 6?
2 Réponses
+ 1
Integers and structures want to be aligned to 4 byte chunks so student1's field a starts at one, b skips to the next to be aligned, c starts at the third, and the structure grabs the rest of it for 12 bytes.
student4 is similar to student1, but you forced the structure to not grab the 3 bytes to end with a 4 byte multiple. Put the int first and it will yield 6 bytes.
+ 1
John Wells good answer !!!!