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 |
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
What is the use of class in c++?
What is the role of C++ shorthand's?
What are c++ variables?
structure contains int, char, float how it behaves for big endian and little endian?
Describe the advantages of operator overloading?
What is the standard template library (stl)?
List the features of oops in c++?
What is realloc() and free()? What is difference between them?
What is an orthogonal base class in c++?
What is Object Oriented programming.what is the difference between C++ and C?
What is a "RTTI"?