Page 1 of 1

Question 4: Writing Code [7 marks] Given: typedef struct { int vehicle_number; char vehicle_name [20]; int top_speed; in

Posted: Fri Jun 10, 2022 11:58 am
by correctanswer
Question 4 Writing Code 7 Marks Given Typedef Struct Int Vehicle Number Char Vehicle Name 20 Int Top Speed In 1
Question 4 Writing Code 7 Marks Given Typedef Struct Int Vehicle Number Char Vehicle Name 20 Int Top Speed In 1 (29.32 KiB) Viewed 73 times
Question 4: Writing Code [7 marks] Given: typedef struct { int vehicle_number; char vehicle_name [20]; int top_speed; int mass; } vehicle_t; Write the code to implement the following: Write the function: void print_vehicle (vehicle_t *vehicle_list, int number_of_vehicles); The function is to printthe first number_of_vehicles records stored in the argument vehicle_list which is a pointer to an array of vehicle_t.