0
How to make two-link data structures
Student informetion. https://code.sololearn.com/W85IvoQXZBZD/?ref=app
8 Answers
0
In C language you can do that by creating a structure with two pointers. This method is used in doubly linked list. For eg-
struct node{
struct node *tail;
int data;
struct node *head;
}
//The above structure now has two links and it is also a user defined data type.
0
Ä° am understand thanks
0
Ä°s it one-way
0
For making it one way you can remove the tail pointer.
0
Examing
student1-->student2-->student3-->null
Student1--> lesson1--> lesson2-->null
Student2-->lesson3-->lesson1-->null
Student3-->lesson2-->lesson1-->null
0
This like
0
Correctđ
0
But
Class student {}
And class lesson {}
How Do we lesson==student student-->lesson-->null