title: allocating memory for structure pointers
body: <p>Why is it that when we declare a structure pointer we need to allocate memory </p>
  
  <pre><code>struct A{
  ///
  };
  int main(void)
  {
      struct A *var=(struct A*)malloc(sizeof(struct A));
  //
  //
  }
  </code></pre>
  
  <p>but when we declare a structure variable we do not need to allocate any memory?</p>
  
  <pre><code>struct A var;
  </code></pre>