C/C++ Syntax Reference - Accessing Struct PointersAccessing Struct Elements Through a Pointer to a StructTo access an element of a struct when you have a pointer to a struct, instead of using the dot operator, use the arrow operator: ->struct_pointer->element; |