Discussion forum on linked list(Week-3)

Answer

Answer

by Nahidul Islam -
Number of replies: 0

Answer to the question no : 01
We need to change the pointer variable name temp when we create new node because the compiler will take the latest name of variable thats why we change the variable name.

Answer to the question no : 02
Assigning a null to the address portion of a node indicates that the node is not linked up with any other node next to it. This node will not point to any next node. Therefore, we assign null to the address portion of the last node if we do not take any further nodes.