In C you can store a value to a field of a union and then read from a different field.
This is usually done to "get the byte representation of a float" or things like that.
Except... it's undefined behavior.
This is usually done to "get the byte representation of a float" or things like that.
Except... it's undefined behavior.
No longer true since C99.
for C99 see http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf