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

Answer Posted / katty

In 'vector' memory allocated(dynamically) during runtime and
for array memory allocated during compilation.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to tokenize a string in c++?

812


Is vector a class in c++?

826


How would you obtain segment and offset addresses from a far address of a memory location?

846


What is the use of :: operator in c++?

834


Tell me can a pure virtual function have an implementation?

791


Do vectors start at 0?

774


What is a pdb file?

766


What is long in c++?

1001


State the difference between delete and delete[].

817


What is size of string in c++?

762


Explain the uses oof nested class?

904


How would you use qsort() function to sort an array of structures?

925


What is wrapper class in c++?

831


What is the precedence when there is a global variable and a local variable in the program with the same name?

907


How delete [] is different from delete?

794