Difference between linked list and array?

Answer Posted / truong nguyen

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a constant reference?

705


How does java differ from c and c++?

621


What is the syntax for a for loop?

695


How do I start a c++ project?

691


What is public, protected, private in c++?

767






What is the basic difference between C and C++?

709


How is static data member similar to a global variable?

686


Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.

3444


Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

446


What will the line of code below print out and why?

423


Mention the purpose of istream class?

705


What is a dll entry point?

643


What are guid?

796


How do you print a string on the printer?

667


Give 10 points of differences between C & C++.

737