按照这个https://stackoverflow.com/a/1812932/1814023 writing one member of union and reading another member is undefined behavior.
按照这个https://stackoverflow.com/a/11640603/1814023 type punning is allowed in C99 / C11
我对这两个帖子有点困惑,哪一个是正确的?在理解类型双关语与访问工会成员方面需要帮助。
谢谢。