Question: Write a proper C program that makes use of a function to accept user inputs and updates members of a structure. The structure should contain

Write a proper C program that makes use of a function to accept user inputs and updates members of a structure. The structure should contain three members: LastName,Gender and Age. LastName will not exceed 30 characters.

The structure variable should be created in the main function. The function should be called to populate the structure variable. The assigned values of the members should be displayed in the main function.

The input and output should work for any number of records. However, for testing purpose, make this work for two structure variables.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!