+ 1

What dose it mean head==NULL in linked list?? Help me please

I know its empty but how? Does it mean that the head address is (empty) or there no info(value) in the head?

10th Mar 2021, 2:17 PM
Jein
Jein - avatar
3 odpowiedzi
+ 1
Jein when head==NULL is true, it means that head is not assigned any location in the memory.. since it is a struct type, it will be assigned a reference. Through that reference you can access its data or values. So null means not have any reference or memory.
10th Mar 2021, 2:22 PM
Jayakrishna 🇮🇳
+ 1
Jayakrishna🇮🇳 thank u🧡🧡🧡
10th Mar 2021, 2:31 PM
Jein
Jein - avatar
0
You're welcome...
10th Mar 2021, 2:33 PM
Jayakrishna 🇮🇳