Electrical and Computer Engineering
5 of 17
UAH
CPE 112
Accessing Individual Components
•To access an individual member of a struct variable, you give the name of the variable, followed by a dot (period), and then the member name. This expression is called a member selector.
•      MemberSelector
•          StructVariable.MemberName
•Examples:
–    firstStudent.gpa
–    student.finalExam