A union is similar to a structure, but is used to store data for any one of its members at any one time. All members have the same offset. This chapter covers union definitions, initialization, compound literals, type punning, and restricted class hierarchies.

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

Unions

  • Paul J. Lucas

摘要

A union is similar to a structure, but is used to store data for any one of its members at any one time. All members have the same offset. This chapter covers union definitions, initialization, compound literals, type punning, and restricted class hierarchies.