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
Are c and c++ similar?
Will a catch statement catch a derived exception if it is looking for the base class?
What is ios flag in c++?
What is ostream in c++?
What is the full form nasa?
What do you mean by overhead in c++?
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number
What do you know about near, far and huge pointer?
What is a storage class used in c++?
What is the best free c++ compiler for windows?
Define private, protected and public access control.
Write is a binary search tree? Write an algo and tell complexity?
There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.
What is the difference between an enumeration and a set of pre-processor # defines?