title: Memory Allocation Problem
body: <p>This question was asked in the written round of a job interview:</p>
  
  <pre><code> #include&lt;alloc.h&gt;
   #define MAXROW 3
   #define MAXCOL 4
  
   main()
    {
      int (*p)[MAXCOL];
       p = (int (*)[MAXCOL]) malloc(MAXROW*(sizeof(*p)));
    }
  </code></pre>
  
  <p>How many bytes are allocated in the process?</p>
  
  <p>To be honest, I did not answer the question. I did not understand the assignment to <code>p</code>.</p>
  
  <p>Can anybody explain me what would be the answer and how it can be deduced?</p>