2.4k views
2 votes
Suppose you have a struct type named employeeType. You have declared an array named employees with 50 elements of type employeeType. The employeeType struct has a member variable called firstName. What is the syntax for accessing the value of firstName in the first element of employees?

User Overburn
by
5.9k points

1 Answer

6 votes

Answer:

employees[0].firstName

Step-by-step explanation:

The syntax would be employees[0].firstName so that employees get registered by their first name. the [0] would be the employer number (0-50) and first name wouls store each employer's first name.

User Mike Andrews
by
6.5k points