Question: Please help all below. 1. 2. 3. 4. 5. Consider the following structure definitions: struct Date int month; int day; int year; struct Event char

Please help all below.

1.

Please help all below. 1. 2. 3. 4. 5. Consider the following

structure definitions: struct Date int month; int day; int year; struct Event

char eventName [20]; Date dates [5]; In a main program we have

2.

created the following variable: Event registration; What will happen if we store

3.

an eventName in registration that is 25 characters long? a. The program

4.

will crash b. Part of the event name will overwrite some of

5.

the bytes in the first event date C. The event name will

Consider the following structure definitions: struct Date int month; int day; int year; struct Event char eventName [20]; Date dates [5]; In a main program we have created the following variable: Event registration; What will happen if we store an eventName in registration that is 25 characters long? a. The program will crash b. Part of the event name will overwrite some of the bytes in the first event date C. The event name will be stored correctly into the eventName field with no additional problems d. Only the first 20 characters of the event name will be stored into the eventName filed- e. The program won't compile Consider the following structure definitions: struct Date int month; int day; int year; struct Event |{ char eventName [20]; Date dates [5]; In a main program we have created the following variable: Event registration; What would be the correct way to set the month to 10 for registration date #3? a. registration.dates.[3].month = 10;- b. registration.dates[3].month = 10;+ c. registration[3].dates.month = 10; d. registration.Date[3].month = 10;+ e. registration.Date dates[3].month = 10;+ f. registration[3].month = 10;- Consider the following structure definitions: struct Date { int month; int day; int year; struct Event { char eventName [20]; Date dates [5]; In a main program we have created the following variable: Event registration; How many bytes of memory will the registration variable occupy? Type your answer... const int MAX = 3; void myFunction(const int myArray[]); int main() 1{ int nums [MAX] = { 40, 76, 93 }; my Function(nums); return 0; void my Function(const int myArray[]) 1 for (int x = 0; x

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!