title: How to malloc an array of string in ANSI C?
body: <p>In C++ I can allocate an array of strings (say 10 strings) very easily as:</p>
  
  <pre><code>string* arrayOfString = new string[10];
  </code></pre>
  
  <p>however I don't know how to do it in ANSI C. I tried:</p>
  
  <pre><code>char** arrayOfString = (*(char[1000])) malloc (sizeof (*(char[1000])));
  </code></pre>
  
  <p>But the compiler (MinGW 3.4.5) keeps saying that it is "Syntax error".
  How to do it right?
  Thanks.</p>