3 ms·
Isn't the first example undefined behavior? I always thought you shouldn't assign data to a union using one member, then access the data using a different memb
by nemesisrobot 11y ago
Isn't the first example undefined behavior? I always thought you shouldn't assign data to a union using one member, then access the data using a different member.
- skarap 11y agoIIRC it was undefined behavior until C99. Then it became implementation-defined.