Question: Basic C++ Consider the following statements: struct nameType { string first: string last: }: struct empInfoType { int department: double salary: string startDate: string address:
Basic C++
Consider the following statements: struct nameType { string first: string last: }: struct empInfoType { int department: double salary: string startDate: string address: }: struct employeeType { nameType name: int evaluationScore: empInfoType empInfo }: employeeType employee: employeeType Department [100]: employeeInfoType empInfo: nameType name: Mark the following statements as valid or invalid. If a statement is invalid, explain why. a. employee.empInfo. department = 2: b. cin >> employee.name: c. myDepartment [0] = name: d. myDepartment [1]. evaluationScore = 8: e. name = myDepartment [10]. name: f. employee.name = name: g. cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
