Question: 6) Write a C programming code and efine a structure named player that can store the information below: 1)First name of a person (maximum 20

6) Write a C programming code and efine a structure named player that can store the information below:

1)First name of a person (maximum 20 characters including null character)

2)Gender of a person (M for male and F for female)

3)Height of a person

B) Declare a structure variable named info of type struct player.

C) Assign the values given below to the members of the structure variable info.

1)First Name: Peter

2) Gender: M

3) Height: 158.5

D) Print the member values of the structure variable info.

7a) Using the structure named player defined in Q6. Declare an array of structures named info of type struct player that can store information for 2 players.

b. Assign the following member values to each element of the array:

6) Write a C programming code and efine a structure named player

c. Print the member values of all array elements. Sample output of the program is shown below

that can store the information below: 1)First name of a person (maximum

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!