1 2 3 4 5 6 7 8 9 10 11 12 13
void something_f(float); int foo(void) { union { float f; double d; } u, *pu = &u; u.f = 1.0; something_f(u.f); }