I need to have a reference of struct
within the other. But in the example below as struct TAnimal
does not yet exist, its reference to struct
player of error. How to get around this situation?
typedef struct jogador{
char nome[50];
TAnimal* animal;
}TJogador;
typedef struct animal{
char nome[50];
TJogador* jogador;
}TAnimal;