title: How do you use malloc to allocate space for an array of structures?
body: <p>I'm currently working on dynamically allocating my array of structures and I'm unsure how to continue. This is my structure:</p>
  
  <pre><code>struct Word_setup 
  {
      char word[M];
      int count;
  } phrase[N];
  </code></pre>
  
  <p>I know <code>malloc</code> returns a pointer to a block of memory, but I'm not sure how this works when it comes to an array of structures.<br>
  If anyone could please clarify that would be much appreciated!</p>