Question: Write the lines of code requested below, based on the following struct definitions and variables. typedef struct { char month [ 1 0 ] ;

Write the lines of code requested below, based on the following struct definitions and variables.
typedef struct {
char month[10];
int day, year;
} Date;
typedef struct {
int valuel [10];
char name[5][20];
Date dates[7];
} Everything;
Everything variable [12], ePtr = & variable[6];
A. Write a line of code to set the fifth value of the second variable to 42.
B. Write a line of code to set the 7th character of the 3rd name of the last variable to 'Q'.
C. Write a line of code to set the year of the first date of the 9th variable to 2023.
D. Write a line of code to use ePtr to change the last character of the first name to 'E'.
E. If ePtr is incremented, where will it then point?

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 Programming Questions!