错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Unions

  • Slobodan Dmitrović

摘要

A union is a user-defined type whose members overlap in memory. Unlike a structure whose members occupy separate regions of memory, the union’s members all occupy the same memory region. The size of the union is equal to the size of its largest field. When declaring a union, we use the following syntax: