#include union { struct { float s, t; }; struct { float x, y; }; } test; int main() { test.x = 5; test.y = 10; printf("s: %f t: %f\n", test.s, test.t); return 0; }