Hello!
I have a problem. I can't use scanf() to set a value of the second member of the person struct. Why? I get an error that tells me "bad access".
int main(int argc, const char * argv[])
{
struct Adress{
char *street;
char *postal;
int zip;
};
struct Person{
char *firstName;
char *lastName;
struct Adress home;
};
struct Person newPerson;
printf("Enter your first name and last name: \n");
scanf("%s %s", newPerson.firstName, newPerson.lastName);
printf("Hello %s %s! \n", newPerson.firstName, newPerson.lastName);
}