Question: Create a program that performs the following actions: Construct a structure Employee that consists of the following fields: ID, name, degree, age A function that
Create a program that performs the following actions: Construct a structure Employee that consists of the following fields: ID, name, degree, age A function that creates an object (a variable of Employee type), fills it from the user the, then returns it. A function that receives an object (a variable of Employee type) and prints its fields. Inside the main function: Ask the user to specify the number of employees. Create a dynamic array of the size specified by the user for the employees. Inside a loop, fill the array elements one at a time by calling the first function. Inside another loop, print the array elements one at a time by calling the second function. You should also attach a screenshot of the program output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
