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 |
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
How can you link a c program with a c function?
Is vector a class in c++?
What are features of c++?
Comment on assignment operator in c++.
How do you declare A pointer to a function which receives nothing and returns nothing
Are c and c++ similar?
What is const in c++?
What will happen if a pointer is deleted twice?
What is the use of lambda in c++?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
What is #include c++?