title: Assigning a 2D array to void*
body: <p>I am passing a chunk of memory to my subroutine. In the subroutine I am assigning parts of this memory to internal 1D array pointers. </p>
  
  <pre><code>typedef struct
  {
      // float a[SIZE_A];
      // float b[SIZE_B];
      // float c[SIZE_C1][SIZE_C2];
  
      float* a;
      float* b;
      float c[][SIZE_C2]; // float** c;
  } OBJ;
  
  
  void init( OBJ* obj, void* mem )
  {
      float* mem_p = (float*)mem; 
  
      obj-&gt;a = mem_p; 
      mem_p += SIZE_A;
  
      obj-&gt;b = mem_p; 
      mem_p += SIZE_B;
  
      obj-&gt;c = ? 
  
  }
  </code></pre>
  
  <p>How would I assign a 3rd member which is 2D array? </p>