Structures and UnionsĀ 


C Programming TutorialĀ 

Go to the Table of Contents

Vist the Gifcom Corporation

Grouping data. Tidying up programs.

Tidy programs are a blessing to programmers. Tidy data are just as important. As programs become increasingly complex, their data also grow in complexity and single, independent variables or arrays are no longer enough. What one then needs is a data structure. This is where a new type of variable comes in: it is called a struct type, or in other languages, a record. struct types or structures are usually lumped together with another type of variable called a union. In fact their purposes are quite different.