Add linkedlist in student tag

This commit is contained in:
Sambo Chea 2020-07-31 21:32:40 +07:00
parent 7f4670089c
commit 1ee2386f7c
2 changed files with 12 additions and 0 deletions

Binary file not shown.

View File

@ -37,5 +37,17 @@ int main()
printf("Hello, %s \n", person2.name); printf("Hello, %s \n", person2.name);
printf("Hello Ptr, %s \n", personPtr->name); printf("Hello Ptr, %s \n", personPtr->name);
// using linkedlist
struct student_tag* first = NULL;
struct student_tag* second = NULL;
struct student_tag* third = NULL;
struct course_tag c1 = { "Computer", 4 };
struct person_tag p1 = { "Sambo", "121214" };
first->course_info = c1;
first->student_info = p1;
return 0; return 0;
} }