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

What is #include iostream?

980


Does c++ cost money?

766


What is a binary file? List the merits and demerits of the binary file usagein C++.

962


What does it mean to declare a member function as virtual?

799


Explain what is class definition in c++ ?

802


What size is allocated to the union variable?

800


What is the difference between passing by reference and passing a reference?

782


Who made c++?

818


Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

564


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2248


what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?

1996


What is a string example?

779


What is the arrow operator in c++?

766


Explain some examples of operator overloading?

865


give me an example for testing a program showing the test path .show how the test is important and complex.

2667