#include <stdio.h>
typedef struct animal TAnimal;
typedef struct jogador {
char nome[50];
TAnimal* animal;
} TJogador;
struct animal {
char nome[50];
TJogador* jogador;
};
int main(void) {
TJogador jogador = { .nome = "abc" };
TAnimal animal = { .nome = "hipopo", .jogador = &jogador };
jogador.animal = &animal;
}
//http://pt.stackoverflow.com/q/190991/101
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp0eXBlZGVmIHN0cnVjdCBhbmltYWwgVEFuaW1hbDsKCiB0eXBlZGVmIHN0cnVjdCBqb2dhZG9yIHsKICAgIGNoYXIgbm9tZVs1MF07CiAgICBUQW5pbWFsKiBhbmltYWw7CiB9IFRKb2dhZG9yOwoKc3RydWN0IGFuaW1hbCB7CiAgICBjaGFyIG5vbWVbNTBdOyAgCiAgICBUSm9nYWRvciogam9nYWRvcjsKfTsKCmludCBtYWluKHZvaWQpIHsKCVRKb2dhZG9yIGpvZ2Fkb3IgPSB7IC5ub21lID0gImFiYyIgfTsKCVRBbmltYWwgYW5pbWFsID0geyAubm9tZSA9ICJoaXBvcG8iLCAuam9nYWRvciA9ICZqb2dhZG9yIH07Cglqb2dhZG9yLmFuaW1hbCA9ICZhbmltYWw7Cn0KCi8vaHR0cDovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMTkwOTkxLzEwMQ==