title: Extending a Structure Array
body: <p>Would this be the proper way to extend a structure array?</p>
  
  <pre><code>typedef struct { int x,y,z;} student_record;
  
  int main(){
  
  student_record data_record[30];       // create array of 30 student_records
  num_of_new_records = 5;
  
  data_record = realloc(data_record,(sizeof(data_record) + (sizeof(student_record)*num_of_new_records)));
  
  // do I now have an array of 35 student_records???
  </code></pre>