Difference between vector and array
Answers were Sorted based on User's Feedback
Answer / xxx
vector is also an array but the size of a vector can change
dynamically where in array its fixed.
we can create some reserve space in vector where in array we
cannot.
| Is This Answer Correct ? | 9 Yes | 1 No |
Vector manages memory allocations, manages in the sense, it
provides constructor,copy constructor,assignment operator,
destructor etc. whereas array doesn't.
| Is This Answer Correct ? | 0 Yes | 1 No |
what is the use of template classes in c++
Is abstract thinking intelligence?
There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?
What is a macro? And how is a macro same as a template?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
How do you define a class in oop?
What is oops?what is its use in software engineering?
c++ program to swap the objects of two different classes
Why we use classes in oop?
Can abstract class have normal methods?
Explain the advantages of inheritance.
What is class and object with example?