Online Programming Server

Login

Login with facebook [?]

Facebook

Tutorial 79: Chapter 7 - Structures

You are here: Tutorials >> Basic >> C >> C Programming Basics >> Chapter 7 - Structures

Tutorial ID79
TitleChapter 7 - Structures

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

Post Your Comment

Title
Message