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

in vector space is not fixed,but in array space is fixed
second vector has memory allocation is dynamic which is
unsuitable at execution time but in array memory allocation
is continuously
array contain same datatype it is not in vector
array has compatibility to use 2d,3d arrayalso

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define stacks. Provide an example where they are useful.

1011


Should a constructor be public or private?

1030


Explain the concept of memory leak?

1101


How do you compile the source code with your compiler?

1050


What is endl?

1151


Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c

1288


What is difference between array and vector in c++?

1025


Write a struct time where integer m, h, s are its members?

955


Using a smart pointer can we iterate through a container?

1071


What is the output of the following program? Why?

1142


Why should we use null or zero in a program?

1030


What is class invariant in c++?

1225


How to implement is-a and has-a class relationships?

1017


What is general format for a prototype?

1040


What is the rule of three?

996