Professional Documents
Culture Documents
13 Array of Structures - Nested Structures PDF
13 Array of Structures - Nested Structures PDF
Fundamentals of programming
a structure can
contain another structure
as its member
as long as it is NOT its self.
Nested Structures
person
name birthdate age
Nested Structures
name
first middle last
Nested Structures
birthdate
month day year
Nested Structures
person
first middle last month day year
age
name birthdate
Nested Structures
DEMO
Array of
Structures
Array of Structures
collection of structures
of the same type
Array of Structures
array of structures
can be created statically
or dynamically just like
in a normal data type.
Array of Structures
data type
Array of Structures
DEMO
CMSC 21
Fundamentals of programming