title: How is memory allocated to struct in C++? Is it dynamic or static memory allocation?
body: <p>I am quite new to C++ programming. So I just wanted to know if the memory allocation to structs is static or dynamic? This is the code that I basically have.</p>
  
  <pre><code>struct student {
      double average;
      struct subjects sub[course_numbers];
  };
  
  struct subjects {
      char name;
     int crn;
     int credits;
  };
  </code></pre>