A structure is one object of (potentially) many types whose data is related. The closest analog in other languages would be a class. This chapter covers structure definitions, initialization, compound literals, padding, flexible array members, and bit-fields.

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

Structures

  • Paul J. Lucas

摘要

A structure is one object of (potentially) many types whose data is related. The closest analog in other languages would be a class. This chapter covers structure definitions, initialization, compound literals, padding, flexible array members, and bit-fields.