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
Is c++ map a hash table?
What are the rules about using an underscore in a c++ identifier?
What is the c++ programming language used for?
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
Can I learn c++ in a week?
To which numbering system can the binary number 1101100100111100 be easily converted to?
What does it mean to declare a member variable as static?
Does c++ have foreach?
When should we use container classes instead of arrays?
Can union be self referenced?
Does std endl flush?
Explain what are accessor methods?
When should you use global variables?
What is polymorphism & list its types in c++?