title: Allocating memory for a Structure in C
body: <p>I'm tasked to create a program which dynamically allocates memory for a structure.
  normally we would use</p>
  
  <pre><code>x=malloc(sizeof(int)*y);
  </code></pre>
  
  <p>However, what do I use for a structure variable?
  I don't think its possible to do</p>
  
  <pre><code>struct st x = malloc(sizeof(struct)); 
  </code></pre>
  
  <p>Could someone help me out?
  Thanks!</p>