title: Pointer in nested structure
body: <p>How do we use the pointers in nested structure?</p>
  
  <p>I created two structure in the code given below, how can I access the elements of <code>st_no</code>?
  Explain about nested structure thoroughly . </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  typedef struct
  {
     char st_no[22];
     int no;
  }address;
  
  typedef struct
  {
    char name[15];
    int mark;
    address addr;
  }student;
  
  int main (void)
  {
   student *selva;
  
  strcpy(selva-&gt;name, "ajay");
  strcpy(selva-&gt;addr.st_no,"3rd st");
  printf("%s",selva-&gt;name);
  
   return 0;
  }
  </code></pre>