Which of the following statements are wrong about a linked list in c?
i. To create linked list we will use pointers.
ii. We can implement stack & queue using a linked list.
iii. nodes in the linked list will be in the contiguous memory locations.
iv. last node of a linked list will have null in the next pointer in case of single linked list.
nodes in the linked list will not be stored in contiguous memory, because when ever we create new node we use malloc, so there is no guarantee that it will be created beside previous node. Otherwise we can implement stack,queue using linked list. to create linked list we will heavily use pointers. last node of a linked list will have next pointer as null, in case of a single linked list.
Back To Top