if (option == 1)
{
pointer temp = malloc(sizeof(struct Customer));
printf("Input PPS\n");
scanf("%d", &temp->PPS);
if (checkPPS(temp->PPS))
{
printf("PPS already exist\n");
printf("Input PPS\n");
scanf("%d", &temp->PPS);
}
printf("Input LOGIN\n");
scanf("%s", temp->login);
printf("Input PASSWORD atleast 6 digits long\n");
scanf("%d", &temp->password);
printf("Input firstname\n");
scanf("%s", temp->firstname);
printf("Input lastname\n");
scanf("%s", temp->lastname);
printf("Input yearborn\n");
scanf("%d", &temp->yearborn);
printf("Input email address\n");
scanf("%s", temp->emailaddress);
printf("Input AREA\n");
scanf("%d", &temp->area);
printf("Input TICKET TYPE\n");
scanf("%d", &temp->TT);
AddCustomer(temp, l);
}
So heres the problem I've tried looking at whats wrong but i cant figure out why as when I try to run it it keeps showing me an error that initializing cannot convert void to pointer