Discussion forum on linked list(Week-3)

week -3

week -3

by Md.Majedul Haque Tanin -
Number of replies: 0

Ans to the question  Number 1:


We need to rename the pointer variable name temp when creating a new node in the link-list. Because when we allocate memory to create a new node and make a temp call, the previous node will repeatedly call a pointer variable called temp. So, I will not be able to create new nodes and enter data into them. So we have to change the name of the pointer variable temp when creating a new node in the link-list..


Ans to the question number 2:

The significance of null to the location part of a node shows that the node isn't connected up with some other node close to it.

.💙💚💛