Struct, Array? Help.

Basically, I have the struct below for the details of a course including the number of students and their names. What I am trying to figure out is how to have the names as an array so I can store many but dynamic too so I can add new students. Thanks.

1
2
3
4
5
   struct course {
      char coursecode[20];
      int number;
      char name[30];
   };


Last edited on
Topic archived. No new replies allowed.