Z
Zero
Hi everybody!
I have the following code:
struct Infos
{
char Haarfarbe[40];
int Groesse;
};
struct Person
{
char Name[30];
char Nachname[20];
int Postleitzahl;
struct * Infos MyInfos;
};
First question:
When I write in main:
struct Person *pPerson;
pPerson = malloc ( sizeof(struct Person) );
is there also memory requested for the second struct inside Person?
Second question:
How do I write values inside the second structure Infos?
I have the following code:
struct Infos
{
char Haarfarbe[40];
int Groesse;
};
struct Person
{
char Name[30];
char Nachname[20];
int Postleitzahl;
struct * Infos MyInfos;
};
First question:
When I write in main:
struct Person *pPerson;
pPerson = malloc ( sizeof(struct Person) );
is there also memory requested for the second struct inside Person?
Second question:
How do I write values inside the second structure Infos?