Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between an ARRAY and a LIST in C++?

Answer Posted / nashiinformaticssolutions

Although lists and arrays are both used to store data, they differ in a few important ways. These consist of:

• A list's size is changeable, but an array's is fixed.
• While a list allows sequential access, in which the user must navigate through the elements to locate a given index, an array allows random access using indexes.

• While a list can store entries in any memory location, an array stores elements in contiguous memory.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Advantage and Use of THIS pointer in C++ – Scenarios?

749


What are the two types of comments?

995


Is c++ pass by reference or value?

1063


What are signs of manipulation?

1065


What is cohesion in oop?

1052


What is a virtual function in C++?

1044


Which operator cannot be overloaded c++?

1012


How important is c++?

980


Is c++ a high level language?

998


Explain the differences between private, public and protected and give examples.

1023


Why is abstraction needed?

1032


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

801


Can you write a function similar to printf()?

1126


What is guard code in c++?

1167


What is a linked list in c++?

1047