Struct declaration
Struct declaration
A struct is a type consisting of a sequence of members whose storage is allocated in an ordered sequence (as opposed to union, which is a type consisting of a sequence of members whose storage overlaps).
The type specifier for a struct is identical to the union
type specifier except for the keyword used:
Syntax
struct name(optional) { struct-declaration-list } | (1) | |
struct name | (2) | 登录查看完整内容
|