title: Malloc char array declared in typedef struct
body: <p>I have a char array in typedef struct, which is too big (around 260k)</p>
  
  <pre><code>#define LENGTH 260000
  
  typedef struct {
     int longSize;
     char hello[LENGTH ];
  } p_msg;
  </code></pre>
  
  <p>I would like to use malloc on this char array which as below:</p>
  
  <pre><code>typedef struct {
     int longSize;
     char * hello= malloc(sizeof(char));
  } p_msg;
  </code></pre>
  
  <p>But it gave me error:</p>
  
  <blockquote>
  <pre><code>error: expected ':', ',', ';', '}' or '__attribute__' before '=' token
  </code></pre>
  </blockquote>
  
  <p>How can I malloc the char array?</p>