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 ?||18 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
|Is This Answer Correct ?||6 Yes||0 No|
Answer / murali
Because array can not grow dynamically
|Is This Answer Correct ?||10 Yes||6 No|
array can grow dynamically...........
but it is a waste of memory to set them to grow dynamically
|Is This Answer Correct ?||1 Yes||14 No|
Tell me an example where stacks are useful?
What are smart pointers?
Can I create my own functions in c++?
Does c++ vector allocate memory?
What are the rules about using an underscore in a c++ identifier?
How do you establish a has-a relationship?
What are the types of pointer?
When volatile can be used?
Do you know about latest advancements in C++ ?
What does the ios::ate argument do?
What is pointer to member?
what are difference between c and c++?