What is the Difference between "vector" and "array"?
Answer Posted / saroj das ,
as we know in C++ the size of array is fixed in compile
time .so the size of array cannot be adjusted at run time
to accommodate changeling program .
but vector can solve this problem allocating memory as
needed. although vector is dynamic
Is This Answer Correct ? | 48 Yes | 10 No |
Post New Answer View All Answers
Explain the different access specifiers for the class member in c++.
Explain virtual class and friend class.
Does std endl flush?
What is a constructor in c++ with example?
What is the latest c++ standard?
Do class declarations end with a semicolon?
What is a .lib file in c++?
Do class declarations end with a semicolon? Do class method definitions?
What is stream and its types in c++?
What is isdigit c++?
What does it mean to declare a member variable as static?
What is the use of function pointer?
Explain queue. How it can be implemented?
Explain differences between new() and delete()?
Write about the members that a derived class can add?