Usage of Struct in C Language
Defining Struct Variables The following example illustrates how to define a struct variable. struct string { char name[8]; int age; char sex[2]; char depart[20]; float wage1, wage2, wage3, wage4, wage5; }person; This example defines a struct variable named person of type string. The variable name person can also be omitted, defined as follows: struct string … Read more