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 searching? Explain linear and binary search.

946


How to access a variable of the structure?

1015


List the issue that the auto_ptr object handles?

966


Tell us the size of a float variable.

993


Explain the term memory alignment?

1159


Why oops is important?

1029


Explain function prototypes in C++.

1006


Explain operator overloading.

1001


When would you use a pointer? A reference?

976


What is iomanip c++?

1011


When there is a global variable and local variable with the same name, how will you access the global variable?

1046


What are the operators in c++?

1056


What is the output of the following program? Why?

1086


Who created stl?

1103


Give an example of run-time polymorphism/virtual functions.

948