What is the Difference between "vector" and "array"?

Answer Posted / guest

a vector is also like an array i.e sequentially accessed but
we can increase/decrease size of a vector in a simple way
than it is done for arrays.

Is This Answer Correct ?    79 Yes 39 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need c++?

593


what is upcasting in C++?

719


What type of question are asked in GE code writing test based on c++ data structures and pointers?

3504


What is virtual table?

619


Explain the difference between abstract class and interface in c++?

525






Which field is used in c++?

633


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

602


Is turbo c++ free?

619


Differentiate between structure and class in c++.

599


What is a namespace in c++?

597


What does the ios::ate argument do?

662


In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

675


What is stoi in c++?

698


What is class syntax c++?

592


List the merits and demerits of declaring a nested class in C++?

608