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

Why c++ is not a pure oop language?

0 Answers  


How to give an alternate name to a namespace?

0 Answers  


Do you know the use of vtable?

0 Answers  


What is low level language in simple words?

0 Answers  


How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?

0 Answers  






How many pointers are required to reverse a link list?

5 Answers   CTS,


What is iomanip c++?

0 Answers  


Can notepad ++ run c++?

0 Answers  


Give a very good method to count the number of ones in a "n" (e.g. 32) bit number.

3 Answers  


Which is the best c++ compiler for beginners?

0 Answers  


let a,b,c be three integer numbers.write a c++ program with a function void rotate 1()such that a->b->c and c->a.

1 Answers  


What are the different operators in C++?

3 Answers   HP,


Categories