Why is it difficult to store linked list in an array?

Answers were Sorted based on User's Feedback



Why is it difficult to store linked list in an array?..

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

Why is it difficult to store linked list in an array?..

Answer / maria

Because of defragmentation, when node should be deleted.

Is This Answer Correct ?    15 Yes 2 No

Why is it difficult to store linked list in an array?..

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

Why is it difficult to store linked list in an array?..

Answer / murali

Because array can not grow dynamically

Is This Answer Correct ?    10 Yes 6 No

Why is it difficult to store linked list in an array?..

Answer / truong

Because size of linked list is usually very large. So it is difficult to store data in a linked list in a continuously memory as an array.

Is This Answer Correct ?    1 Yes 3 No

Why is it difficult to store linked list in an array?..

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

Post New Answer

More C++ General Interview Questions

What is an operator function? Describe the function of an operator function?

0 Answers   Fidelity,


What is c++ vb?

0 Answers  


How many lines of code you have written for a single program?

4 Answers   BoA,


What should main() return in c and c++?

0 Answers  


Why do we use iterators?

0 Answers  


Can a Structure contain a Pointer to itself?

0 Answers  


Write syntax to define friend functions in C++.

0 Answers   HAL,


What is the difference between Class and Structure?

40 Answers   HP, IBM, Samsung, TCS,


What type of question are asked in GE code writing test based on c++ data structures and pointers?

0 Answers  


How would you use the functions randomize() and random()?

0 Answers  


What are the various oops concepts in c++?

0 Answers  


What is the difference between *p++ and (*p)++ ?

0 Answers  


Categories