DRILL 39Medium
Active Union Member
After this code runs, which union member is the active representation?
drill.cC
union Payload {
struct { int x, y; } point;
char raw[16];
};
struct Variant {
enum { POINT, RAW } tag;
union Payload value;
} v;
v.tag = POINT;
v.value.point.x = 3;