I have:
struct date
{
int day;
int month;
int year;
};
struct person {
char name[25];
struct date birthday;
};
struct date d = { 1, 1, 1990 };
Initialization with
struct person p1 = { "John Doe", { 1, 1, 1990 }};
works.
But if I try
struct person p2 = { "Jane Doe", d};
I get an error like:
"Date can't be converted to int".
Whats wrong? d is a struct date and the second parameter should be a struct date as well. So it should work. Thanks and regards