#include #include struct test { char a: 2; char b: 2; char c: 5; } __attribute__((__packed__)); int main(void) { struct test t; memset(&t, 0, sizeof(struct test)); t.a = 0; t.b = 0; t.c = 0; printf("%c %c\n", (char *)&t, (char *)(&t+1)); }