I have two ways to arrange the fields in a structure
struct foo { float a; double b; float c; double d; short e; long f; short g; long h; char i; int j; char k; int l; }; struct foo { double b; double d; long f; long h; float a; float c; int j; int l; short e; short g; char i; char k; }; Which one should be practiced and why?
printf("%d\n", sizeof(struct foo))for each variant, and you'll know which one is better and precisely why...