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
How would you implement a substr() function that extracts a sub string from a given string?
Is c++ the hardest language?
What language does google use?
program explaining feautures of c++
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
What is iterator c++?
What is a terminating character in c++?
Define 'std'.
What is scope operator in c++?
Is c++ a programming language?
Where is atoi defined?
Can a built-in function be recursive?
what is data encapsulation in C++?
What is c++ runtime?
What is the arrow operator in c++?