what does node *next stands for?
Meaning of the following statement in code
@meg.2198 this is pointer for linked list node of class linklist which initially pointing to null.
basically a linklist is consist of 2 part node which one contain value and next one is stores an address of next node
Hi Meghna, usually the node class contains two members, data to be stored in the node which is of integer type and *next which is a pointer of node type and which points to the next node in a linked list. It stores the address of the next node. For example, consider the following linked list:
2->3->NULL
Suppose the node 2 is at an address 1k and node 3 is at an address 5k, so the *next of 2 will store the address of next node i.e. 5k and the *next of 3 will store the address of its next node which is NULL in this case.