15
Propósito de las uniones en C y C ++
He usado los sindicatos antes cómodamente; hoy me alarmó cuando leí esta publicación y supe que este código union ARGB { uint32_t colour; struct componentsTag { uint8_t b; uint8_t g; uint8_t r; uint8_t a; } components; } pixel; pixel.colour = 0xff040201; // ARGB::colour is the active member from now on …
254
c++
c
unions
type-punning