Structure
- A structure (struct) is a collection of data, different data types allowed, which can be treated as an entity
- A member data variable in a struct is called a data field
- Data fields in a C struct is guaranteed to lay in memory in the order exactly same as in definition
- Data fields may be padded to preserve alignment, thus two adjacent data fields may not be laid adjacently in memory
|
Facebook