C Programming – Data Types : Part 2
Structure A struct is an aggregate type, meaning that it is made up of other objects. The objects that make up a struct are called its members. The members of a struct may be accessed by the ‘.’ or ‘->’ operators. A struct may be named or unnamed. Let’s look at some examples: #include struct person { char first[100]; char last[100]; int age; struct { char addrline[500]; char city[100]; char state[30]; char zip[15]; } address; }; void printperson( struct person *p ) { …