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 |
What is size of empty class object
Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?
What is rtti in c++?
What is the cout in c++?
What is function prototyping?
What is function overriding in c++?
What does it mean to declare a member variable as static?
Difference between struct and class in terms of access modifier.
What is prototype for that c string function?
string somestring ; Which of the following choices will convert a standard C++ string object "somestring" to a C string? a) Copy.somestring () ; b) somestring.c_str () c) &somestring [1] d) std::cstring (somestring) e) (char *) somestring
What is the Diffrence between a "assignment operator" and a "copy constructor"?
Why is c++ awesome?