how to access elements of a struct in c++ code example Example: what is a struct in c++ struct Person { char name[50]; int age; float salary; };