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 do I use turbo c++?
What are different types of loops in c++?
What do you understand by zombie objects in c++?
What is switch case in c++ syntax?
Explain the term memory alignment?
What does iomanip mean in c++?
If there are two catch statements, one for base and one for derived, which should come first?
Write about the local class and mention its use?
Where is atoi defined?
What is the header file for setw?
Where are setjmp and longjmp used in c++?
Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened
Where and why do I have to put the "template" and "typename" keywords?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
What is ifstream c++?