To access elements in an array that is within a struct, use a dot operator followed by a subscript operator. The dot operator first accesses the specified array element in a struct. Then, the subscript operator accesses elements in the array based on the index value.
For example, you have the following struct with the array elements