title: Using structures in C
body: <p>I have two structures-</p>
  
  <pre><code>typedef struct Element
   {
    int a;
   }Element;
  
  typedef struct List
   {
    Element * E;
   }List;
  </code></pre>
  
  <p>How can I add elements in the array E?I am trying to do this but this is not working-</p>
  
  <pre><code>List list;
  list.E=calloc(5,sizeof(int));
  for(i=0;i&lt;5;i++) 
    (list.E+i)-&gt;a=2;
  </code></pre>
  
  <p>What is wrong in this??</p>