title: access members of a structure from void pointer inside a structure
body: <p>I want to access members of a structure from void pointer inside a structure, I have tried the following code but it is giving error as "expected identifier before ‘(’ token". what should I change in printf statement? Thanks in advance.</p>
  
  <pre><code>#include "stdio.h"
  struct
  {
      int date;
      char *name;
  }test;
  
  struct
  {
      void *check;
  }massage;
  
  main()
  {
      test.date=21;
      test.name="Nilesh";
      massage.check =&amp;test;
      printf("date - %d , name - %s\n",massage.((struct test *)check)-&gt;date,massage.((struct test *)check)-&gt;name);
  }
  </code></pre>