C/C++ Syntax Reference - Accessing Stuct Elements

Accessing Struct Elements

Accessing a struct is as simple as using the "dot operator". If you have a a struct named struct_name and it has an element named struct_element:
Note that this works only in the case where the struct is not a pointer to a struct.