1. Why do we need structs?
A struct (which is short for structure) is needed because it enables us to group variables of different data types into a single unit. Otherwise, it becomes cumbersome to write out independent variables of different data types at once.
2. What are members in a struct?
A member in a struct is in simple terms the variables inside the struct.
3. How do you access a member inside a struct?
To access a member inside a struct, a programmer must use the member selection operator. The member selection operator is simply the struct followed by a period and the name of the member. As an example of this is as follows:
fish.weight = 7;
fish.length = 4;
fish.name = tilapia
4. What is a nested struct?
A nested struct is a simply a struct placed inside another struct.