title: How do I use a typedef struct with that same struct in the inside?
body: <p>I want to avoid having to write <code>struct</code> before every time I create a new struct variable, so I'm <code>typedef</code>ing it.</p>
  
  <p>The following doesn't work:</p>
  
  <pre><code>typedef struct {
      int data;
      Node *next;
  } Node;
  </code></pre>
  
  <p>This does though:</p>
  
  <pre><code>struct Node {  
    int date; 
    struct Node *next;  
  };
  </code></pre>
  
  <p>How do I use a typedef struct in C? I keep getting this error with the above one:</p>
  
  <pre><code>error: unknown type name 'Node'
              Node *next;
  </code></pre>