title: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘=’ token in struct
body: <p>I'm getting the error when compiling with gcc -Wall -std=c99: </p>
  
  <p><code>pokerhand.c:20:17: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘=’ token<br>
  Card *cards = malloc(sizeof(Card)*5);</code></p>
  
  <p>here is my code where the error is happening</p>
  
  <pre><code>typedef struct card 
  {
      char suit;
      char *face;
  } Card;
  
  typedef struct hand 
  {
      Card *cards = malloc(sizeof(Card)*5);
      char *result;
  } Hand;
  </code></pre>
  
  <p>all I have before these structs is header includes</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  #include &lt;strings.h&gt;
  </code></pre>