title: Can you declare a variable as a structure within the main in C?
body: <p>I have looked online but I can't find anything... </p>
  
  <p>I know how to make a structure and everything.
  I'm just interested to know if you can do something like this.</p>
  
  <pre><code>struct Complex{
      float real;
      float imag;
  } a, b, c;
  </code></pre>
  
  <p>Now I have a structure for complex numbers a, b and c.</p>
  
  <p>The question is: do I need to place new variables here all the time? Or can I maybe do something like:</p>
  
  <pre><code>Complex d;
  </code></pre>
  
  <p>and make <code>d</code> a new complex variable for the structure. 
  (This doesn't work; I tried it, so I'm wondering if it can be done in some other way.) </p>