Question: Please answer fully in C programming (pointers). ----------------------------------------- #include #include #define MAX_STR 32 #define MAX_VEHICLES 4 #define MAX_CUSTOMERS 6 typedef struct { // ADD MEMBER
Please answer fully in C programming (pointers).


-----------------------------------------
#include
#include
#define MAX_STR 32
#define MAX_VEHICLES 4
#define MAX_CUSTOMERS 6
typedef struct {
// ADD MEMBER VARIABLES
} VehicleType;
typedef struct {
// ADD MEMBER VARIABLES
} CustomerType;
void print_vehicle(VehicleType *v) {
//add code here!!!
}
int main() {
CustomerType customers[MAX_CUSTOMERS];
return 0;
}
Defined structures This program makes use of two structures that need to be completed. The first is the VehicleType structure. This structure will contain all of the data for each car owned by the customers. This structure will have fields for the following pieces of data: e . . . make (string) model (string) colour (string) year (int) mileage (int) The second structure (CustomerType) will contain all of the data regarding the individual customers. It will have the following fields: first name (string) . last name (string) . number of vehicles registered with the shop (int) . a Vehicle Type array storing the individual vehicles owned by the customer (declared to have a length of MAX_VEHICLES
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
