Why is it difficult to store linked list in an array?
Answers were Sorted based on User's Feedback
Answer / deepti
because in linklist we can store as many elements as we
want because size does not matter .but in case of array if
we define size suppose 20 we can store only 20 elements .
Is This Answer Correct ? | 20 Yes | 2 No |
Answer / maria
Because of defragmentation, when node should be deleted.
Is This Answer Correct ? | 15 Yes | 2 No |
Answer / sandy
because it grows dynamically. it can get extra node from
avail(available) list whereever array not having any avail
list......
Is This Answer Correct ? | 6 Yes | 0 No |
Answer /
array can grow dynamically...........
but it is a waste of memory to set them to grow dynamically
Is This Answer Correct ? | 2 Yes | 14 No |
How does class accomplish data hiding in c++?
Can we declare a base-class destructor as virtual?
How can a '::' operator be used as unary operator?
Is rust better than c++?
Which of the Standard C++ casts can be used to perform a ?safe? downcast: a) reinterpret_cast b) dynamic_cast c) static_cast d) const_cast
WHO DEVELOPED C++?
How do I use turbo c++?
What are pointer-to-members? Explain.
How do you generate a random number in c++?
Which bitwise operator is used to check whether a particular bit is on or off?
What is a down cast?
List out some of the object-oriented methodologies?