union X{ char a; float b; }
If you store something in a, the other 3 bytes corresponding to b are unspecified
But I suspect this doesn't apply if a and b have the same size.
union X{ char a; float b; }
If you store something in a, the other 3 bytes corresponding to b are unspecified
But I suspect this doesn't apply if a and b have the same size.