I'm trying to define a struct with other structs as members of that struct but I'm not sure how this is done. The code I have looks like this so far:
typedef struct name
{
char fname[15];
char lname[15];
} Name;
typedef struct info
{
int grade;
char phone[13];
} Info;
typedef struct mark
{
int math;
int sci;
int eng;
} Mark;
typedef struct student
{
Name n;
Info i;
Mark m;
} Student;
int main()
{
Student class_list[30] = { };
}