Which one of the following is not correct when we define either a class that does not implement either a mathematical entity like a matrix or a complex number or a low level type such as linked list?
Which one of the following is not correct when we define either a class that does not implement either a mathematical entity like a matrix or a complex number or a low level type such as linked list? Correct Answer Don't use public data members
A linked list consists of a number of nodes in which each node has a next pointer to the following element. The link of the last node in the list is NULL, which indicates the end of the list.
Array occupies continues memory locations. In linked lists, it's not necessary that the nodes created are in a continues memory location so that the possibility of the cache miss is higher.
মোঃ আরিফুল ইসলাম
Feb 20, 2025