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++?



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

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

More C++ Interview Questions

What is a class in C++?

1 Answers   Amazon, TCS, UGC Corporation,


How does free know the size of memory to be deleted

0 Answers  


Write a C++ Program to find Square Root of a number using sqrt() function.

1 Answers  


What Is A Default Constructor in C++ ?

0 Answers   Amazon,


When must you use a constructor initializer list?

0 Answers   Amazon,


What kind of problems does name mangling cause?

0 Answers   Amazon,


Write a C++ Program to Find Sum and Average of three numbers.

1 Answers  


What is the meaning of the following declaration: int *const *const *i?

0 Answers   Adobe,


Write a program to read the values a, b and c and display x, where x=a/b–c. Test the program for the following values: (a) a = 250, b = 85, c = 25 (b) a = 300, b = 70, c = 70

1 Answers  


What does it mean to declare a member function as static in C++?

0 Answers   Amazon,


Consider the following C++ program

0 Answers  


Identify the errors in the following program. #include <iostream> using namespace std; void main() { int i=5; while(i) { switch(i) { default: case 4: case 5: break; case 1: continue; case 2: case 3: break; } i-; } }

1 Answers  


Categories