1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
union u { unsigned char a; double b; }; int a; union u foo (void) { union u b; if (a) b.a = 1; else b.a = 0; return b; }