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 do c++ struct differs from the c++ class?
What is slicing?
Which one is better- macro or function?
Explain what are single and multiple inheritances in c++?
What is heap sort in c++?
How can you link a c++ program to c functions?
List out some of the OODBMS available?
Write a program to concatenate two strings.
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 size of empty class object
Why do we use classes in c++?
How do you sort a sort function in c++ to sort in descending order?