CS 102 (Fall '03)
[Schedule] [Examples] [Programs] [Notes & Reference] [Syllabus] [Lab & TA] [Tests] [Grades]

Structures

 

Arrays: collections of homogeneous (similar type) objects

Structures (or simply Structs): collections of heterogeneous (different types) objects

Definition: A structure is a collection of related values. Structures are constructed using objects of other types. Structures may have a structure tag name, as well as structure instances.

Examples to illustrate the need:

 

 


[CS Dept] [UIC] [Prof. Reed]