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 |
Explain shallow copy?
What are stacks?
What is pointer with example?
How can you force instantiation of a template?
write a program that takes 5 digit no and calculate 2 power that no and print it.
Explain how a pointer to function can be declared in C++?
What is an incomplete type in c++?
What is the best ide for c++?
What is a concrete class?
Does c++ have string data type?
Difference between linked list and array?
Difference between shift left and shift right?