3 ms·
> Access through a union allow the same region of memory to be interpreted as different types. …only in C. > No mainstream compiler will ever not optimise tha
by saagarjha 7y ago
> Access through a union allow the same region of memory to be interpreted as different types.
…only in C.
> No mainstream compiler will ever not optimise that.
Actually, it's mandated by the System-V ABI for structures of an appropriate size.