#include struct a; struct b; struct c; struct a { struct c *where; struct b *when; }; struct b{ struct a who; }; struct c { struct b what; }; struct b* make_b(int n) { struct b* new_b = (struct b*)malloc(sizeof(struct b)); new_b->who = *make_a(n); return new_b; } struct c* make_c(int n) { struct c* new_c = (struct c*)malloc(sizeof(struct c)); new_c->what = *make_b(n); return new_c; } struct a* make_a(int n) { struct a* new_a = (struct a*)malloc(sizeof(struct a)); new_a->where = make_c(n - 1); new_a->when = make_b(n - 1); return new_a; } int main() { struct c new_one = *make_c(6); }