title: pointer to member of struct
body: <p>I am trying to write a C program. I need the address of variable "recq". Can someone pls help me figure that out?  </p>
  
  <pre><code>typedef struct {  
      int recq;  
  } dd;  
  
  
  struct test {  
      dd a;  
  };
  
  main(){  
      struct test *mm;  
      mm=(struct test *) malloc (sizeof (struct test));    
      ss=&amp;(mm-&gt;a.recq);    
      printf("%p",ss);    
  
  }      
  </code></pre>