Add linkedlist in student tag
This commit is contained in:
parent
7f4670089c
commit
1ee2386f7c
BIN
tests/work1
BIN
tests/work1
Binary file not shown.
@ -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;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user