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 "vector" and "array"?

Answer Posted / namitha

Vectors are a kind of sequence containers. As such, their
elements are ordered following a strict linear sequence.

Vector containers are implemented as dynamic arrays; Just as
regular arrays, vector containers have their elements stored
in contiguous storage locations, which means that their
elements can be accessed not only using iterators but also
using offsets on regular pointers to elements.


Arrays is a sequence of similar data type.

Is This Answer Correct ?    11 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a block in c++?

1055


Why is c++ still best?

985


What is std :: flush?

1081


Explain method of creating object in C++ ?

1107


What is runtime errors c++?

1131


Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.

1058


What does flush do?

995


What is c++ manipulator?

990


How long it will take to learn c++?

1048


What is capacity in vector in c++?

1020


What is rtti in c++?

1141


Is c++ built on c?

1037


Explain the difference between abstract class and interface in c++?

990


Define the process of error-handling in case of constructor failure?

1017


How is c++ used in the real world?

1043