title: C typedef of pointer to structure
body: <p>I had come across the following code:</p>
  
  <pre><code>typedef struct {
          double x;
          double y;
          double z;
  } *vector;
  </code></pre>
  
  <p><strong>Is this a valid type definition?</strong> The code compiles and runs fine. I was just curious if this is common practice.</p>