All pastes #974362 Raw Edit

Anonymous

public c v1 · immutable
·published 2008-04-06 19:14 UTC
rendered paste body
#include <stdio.h>#include <string.h>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));}