title: Dynamic Memory Allocation with pointer of arrays
body: <p>How to dynamically allocation memory for pointer of array?
  <code>(*p)[4]</code></p>
  
  <pre><code>int main()
  {
      int (*p)[4];
      int i;
      for (i=0;i&lt;4;i++)
         (p)[i]=(int*)malloc(4);
      printf("a");
      return 0;
  } 
  </code></pre>
  
  <p>on <code>code::blocks</code>, it says:</p>
  
  <pre><code>error: incompatible types when assigning to type 'int[4]' from type 'int *'|
  </code></pre>