title: Struct inside struct
body: <p>I must create a Person and each Person should have a Fridge. Is this the best way of doing it? If so what am I doing wrong? Thanks in advance.</p>
  
  <pre><code>typedef struct {
   int age;
   struct FRIDGE fridge;
  } PERSON;
  
  typedef struct {
   int number;
  } FRIDGE;
  
  FRIDGE fr;
  fr.number=1;
  
  PERSON me;
  me.name=1;
  me.fridge = fr;
  </code></pre>
  
  <p>This gives me the following error:</p>
  
  <blockquote>
    <p>error: field ‘fridge’ has incomplete type</p>
  </blockquote>