Week-13 Struct Enum Typedef
Week-13 Struct Enum Typedef
Week-13 Struct Enum Typedef
● If not used struct in this sample we would have to define 9 different variables.
● We make it with 3 variables.
● Think about a program that takes 20 informations for a person.
● With 3 person you have to define 60 different variables.
● Another advantage using struct is with copying data on an other variable.
● you = yourSister assignment copies your sister's data on to your data
Nested Structures
Labeling Structures