#include #include struct walign{ char a; int b; short c; int d; } s1; #pragma pack(1) struct woalign { char a; int b; short c; int d; } s2; int main() { printf("size of char: %ld\n", sizeof(char)); printf("size of int: %ld\n", sizeof(int)); printf("size of short: %ld\n", sizeof(short)); printf("With alignment: %ld\n", sizeof(s1)); printf("Without alignment: %ld\n", sizeof(s2)); }