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 do you mean by delegate? Can a user retain delegates?
What are the extraction and insertion operators in c++? Explain with examples.
What is c++ virtual inheritance?
What sorting algorithm does c++ use?
What is the standard template library (stl)?
What is istream c++?
How the programmer of a class should decide whether to declare member function or a friend function?
If all is successful, what should main return a) 0 b) 1 c) void
Is arr and &arr are same expression for an array?
How to declaring variables in c++?
Differentiate between a copy constructor and an overloaded assignment operator.
Define pre-condition and post-condition to a member function in c++?
Explain how a pointer to function can be declared in C++?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
Can I make ios apps with c++?