struct train int cars int seats l struct coaster string name
struct train int cars; int seats; l; struct coaster string name; train line; int num_trains; li coaster C5; Answers. C5-line-cars C5-line . cars = 10; (\"C5)·line . cars = 10; C5.line. Cars = 10; 10;
Solution
Answer:
C5.line.cars = 10; this is how elements are accessed.
C5 is not a pointer so it should be the dotted version like \"c5.train.car\" provided all memory allocation etc are already done.
First we create a structure \'Trains\' we declare a variable cars under the \'trains\', now we put train under cosater structure and Assign Lines to Train sturcture so when we need to add value into coaster we can add same noramly or we can add into other structure which is assign to a varibale.
