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 the use of structure in c++?

727


What is data type in c++?

744


Name the debugging methods that are used to solve problems?

744


Describe delete operator?

818


Explain the concept of memory leak?

833






Describe linkages and types of linkages?

757


What c++ is used for?

812


What is c++ vb?

820


What is istream and ostream in c++?

784


How the keyword struct is different from the keyword class in c++?

769


How do you find out if a linked-list has an end?

834


What will happen if a pointer is deleted twice?

912


Describe the syntax of single inheritance in C++?

815


Write bites in Turbo c++ Header ("Include") Files.

909


Will rust take over c++?

766