Miscellany
public text v1 · immutable#include <stdio.h>
struct efficient {
int y;
int w;
char z;
char x;
};
struct notsoefficient {
char z;
int y;
char x;
int w;
};
int main() {
printf("Efficient structure: %d\n",sizeof(struct efficient));
printf("Not efficient structure: %d\n",sizeof(struct notsoefficient));
return 0;
}