All pastes #151845 Raw Edit

Miscellany

public text v1 · immutable
#151845 ·published 2006-08-28 13:24 UTC
rendered paste body
#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;
}