2
I need there to be a reference to struct
inside the other. But in the example below as the struct TAnimal
does not yet exist, her reference in struct
error player. How to get around this situation?
typedef struct jogador{
char nome[50];
TAnimal* animal;
}TJogador;
typedef struct animal{
char nome[50];
TJogador* jogador;
}TAnimal;
Perfect, worked!
– Thiago