Ad Code

Linked List has 0 and null same?

In the linked list's Picture the last element has a address 0 but we give the last node NULL please explain it
is NULL and 0 is same?


In such cases like linked list, Zero and NULL are used interchangeably. In theory NULL and in code (implementation) the value 0 is used. So Yes can be called as same.
Reactions

Post a Comment

0 Comments