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
What is c++ hiding?
What is the use of setprecision in c++?
What is math h in c++?
What is prototype for that c string function?
How do you decide which integer type to use?
What do you mean by static variables?
What is singleton pattern in c++?
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?
How is new() different from malloc()?
What is rvalue?
What is a null object in c++?
What does namespace mean in c++?
Is dev c++ free?
Explain the use of virtual destructor?
How a modifier is similar to mutator?