asked 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?

asked
User Overburn
by
8.4k 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.

answered
User Mike Andrews
by
8.7k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.