我知道联盟和结构之间的区别.但是从设计和编码的角度来看,使用union而不是结构的各种用例是什么?一个是空间优化.使用它们还有什么好处吗?
c structure unions
c ×1
structure ×1
unions ×1