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

What is the purpose of templates in c++?

803


Is eclipse good for c++?

820


Who discovered c++?

776


What is the use of vtable?

926


What is the difference between a "copy constructor" and an "assignment operator" in C++?

868


What is an inline function in c++?

897


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

1063


Write a program which employs Recursion

1022


What is a responder chain?

825


what is the use of void main() in C++ language?

923


Can we distribute function templates and class templates in object libraries?

825


What is the error in the code below and how should it be corrected?

559


How do you declare a set in c++?

771


What is stream and its types in c++?

799


How does atoi function work?

910