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

Which operator cannot be overloaded c++?

673


Why c++ is better than c language?

662


Define what is constructor?

687


What is #include sstream?

708


What is private inheritance?

679






Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

677


Can a Structure contain a Pointer to itself?

694


Explain the operation of overloading of an assignment operator.

789


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

1592


Explain rtti.

673


What is the difference between #import and #include in c++?

692


What is the best c++ ide?

696


Why is it necessary to use a reference in the argument to the copy constructor?

717


What is the meaning of string in c++?

661


Explain static and dynamic memory allocation with an example each.

726