title: Dynamically allocate structure and array in it in C
body: <ol>
  <li>How will I dynamically allocate an array of <code>struct Register</code> with each register having a dynamically allocated array of <code>struct Field</code> ?</li>
  <li>How will I access each of these members (Can I use <code>Register_A.FieldArray[23].High</code>?)?</li>
  <li><p>How will I initialize register structure efficiently(assuming that register struct array is a big one) ? (Like a data segment without spending any compute)</p>
  
  <pre><code>struct Field
  {
      char    High;                
      char    Low;                
      char    Attribute;
  };
  
  struct Register 
  {
     unsigned int    ResetValue;
     struct Field    FieldArray[];
  };
  </code></pre></li>
  </ol>