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 |
Why do we use classes in c++?
Is there any difference between int [] a and int a [] in c++?
How to declare an array of pointers to integer?
Explain terminate() and unexpected() function?
In what situations do you have to use initialization list rather than assignment in constructors?
What are the three types of access specifiers in C++?
What are stacks?
What are the operators in c++?
Explain the use of this pointer?
What is c++ virtual inheritance?
i want the NIC programmer-B model papaer pattren, iwant the all model papers?
what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?