Difference between linked list and array?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ a software?

724


What is guard code in c++?

636


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

1832


What are enumerations?

653


Out of fgets() and gets() which function is safe to use and why?

723






Is it possible to pass an object of the same class in place of object reference to the copy constructor?

566


Why do we use templates?

595


What is constructor in C++?

626


Explain function overloading and operator overloading.

617


Which format specifier is used for printing a pointer value?

573


List the types of polymorphism in c++?

622


What is a memory leak c++?

590


Can a constructor be private?

577


What is using namespace std in cpp?

543


Which operator cannot be overloaded c++?

585