title: accessing double pointer to structure
body: <p>I am trying to frame a data packet using the following structure pointer</p>
  
  <pre><code>typedef struct address {
      unsigned char *mac_destn_addr;
      unsigned char *mac_src_addrl
  }address_t;
  
  typedef struct frame {
      address_t     *eth_addr;
      unsigned char *payload;
      unsigned int  *crc32;
  }frame_t;
  
  typedef struct eth_ctrl {
      unsigned char *no_of_pkt;
      unsigned short *delay;
      frame_t     **eth_frame;
  }eth_ctrl_t;
  
  address_t *adr;
  frame_t *frame;
  eth_ctrl_t *control;
  
  void main(int argc, char *argv[])
  {
      adr = malloc(sizeof(address_t));
      frame = malloc(sizeof(frame_t));
      control = malloc(sizeof(eth_ctrl_t));
  
      frame-&gt;eth_addr = adr;
      control-&gt;eth_frame = &amp;frame;
  
      printf("CRC32 : 0x%x\n", (*control)-&gt;eth_frame-&gt;crc32);
  }
  </code></pre>
  
  <p>it prints the address of <code>crc32</code> variable. I need to print the value which is present at that address.
  i tried with <code>*(*control)-&gt;eth_frame-&gt;crc32</code>, <code>**(control-&gt;eth_frame-&gt;crc32)</code> it doesn't prints the correct value.</p>