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
Describe private, protected and public?
what is C++ objects?
Can I have a reference as a data member of a class? If yes, then how do I initialise it?
What are function prototypes?
What is the use of endl in c++?
What is a constant? Explain with an example.
Who was the creator of c++?
Explain what are single and multiple inheritances in c++?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
What is meant by the term name mangling in c++?
Can you pass a vector to a function?
How many ways can a variable be initialized into in C++?
Are php strings immutable?
Differentiate between an external iterator and an internal iterator?
Why can’t you call invariants() as the first line of your constructor?