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
What is const in c++?
What does ctime() do?
What is protected inheritance?
How many different levels of pointers are there?
Define linked lists with the help of an example.
What is the best c++ book for beginners?
Describe the setting up of my member functions to avoid overriding by the derived class?
What is the exit function in c++?
Why do we use vector in c++?
Explain rethrowing exceptions with an example?
Which is the best c++ compiler for beginners?
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
Can non graphic characters be used and processed in C++?
Why do we need c++?
What is the use of "new" operator?