Question: You are given the following struct kid and an array of struct kids for a nursery school. You use it for storing kid's information. The





You are given the following struct kid and an array of struct kids for a nursery school. You use it for storing kid's information. The figure on the right shows an example where four kids' information has been stored in the array #define asize 100 kids typedef enum (red = 0, gen, blu) fav colori Wemam tor favorite color Jane red 3 David gen 2 Tom struct kid char name 1301; tav color colorvalua int 2 Martha blu struct kid tidstasize array or structs int tail 0 Index to the next frog structure tail All the write-in questions are related to each other and are based on the code given above. Assume that you have all the helper code needed to make the program running. Answer the following questions. (1) How many padding bytes are required for the struct kid? [ Select] nct array kids? All the write-in questions are related to each other and are based on the code given above, Assume that you have all the helper code needed to make the program running. Answer the following questions (1) How many padding bytes are required for the struct kid? (Select) (2) Which statement will correctly input the name into the struct array kids? [Select) (3) Which instruction will correctly input the age into the struct array kids? [Select] v (4) If you want to define a struct kidNode based on struct kid so that kidNode can be used for forming a linked list, what member needs to be added into kidNode? [Select] 15 What is the total size (in Bytes) of the array kids? [ Select] [ Select (2) Which statement will correctly input the name into the struct array kids Select) Select scanf("%s", "kids(tail).name): scanf("%s", &kids[tail].name): scanf("%s", kids tail] name); scanf("%s". kids.name); tly input the age into the struct array kids? (4) If you want to define a struct kidNode based on struct kid, so that kidNode forming a linked list, what member needs to be added into kidNode? Select] [Select) (3) Which instruction will correctly input the age into the struct array kids? [Select] [ Select scanf("%s", &kids(tail).age): scanf("%s" kids(tail).age); scanf("%s", kids age); scanf("%s", "kids(tail) age): Select) t kidNode based on struct kid, so that kid Node can ber needs to be added into kidNode? 1.5 What is the total size (in Bytes) of the array kids? Select) () It you want to define a struct kidNode based on struct kid, so that kidNo forming a linked list, what member needs to be added into kidNode? structNode "next Node next struct kid Node next struct kidNode Snext: ytes) of the array kids? Question 3 The structure definition of this question is based on the [Select) 1.5 What is the total size (in Bytes) of the array kids? I Select [Select) 3500 4200 3800 4000 3600 Question 3 The structure definition of this question is based on the nimi
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
