Difference between linked list and array?
Answers were Sorted based on User's Feedback
Answer / shyamu sharma
Linked List is dynamic, Array is static.
Searching : Fast in Linked List, Slow in Array.
Array is fixed length, Linked List Unlimited till Memory end.
| Is This Answer Correct ? | 12 Yes | 1 No |
Memory address of items in the array are continues but they
are not continues in the linked list. So you will easily to
access one item in an array, but not for a linked list.
However, you can easily insert or remove one item into/from
a linked list.
| Is This Answer Correct ? | 8 Yes | 1 No |
Does c++ have foreach?
Is dev c++ a good compiler?
What are the different types of polymorphism in c++?
Which function should be used to free the memory allocated by calloc()?
What is the difference between delegation and implemented-in-terms-of?
What is a loop? What are different types of loops in c++?
What is the main use of c++?
What is a .lib file in c++?
Explain how a pointer to function can be declared in C++?
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?
Specify some guidelines that should be followed while overloading operators?
What is the latest version on c++?