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
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.