What is the Difference between "vector" and "array"?
Answer Posted / vivek
in vector space is not fixed,but in array space is fixed
second vector has memory allocation is dynamic which is
unsuitable at execution time but in array memory allocation
is continuously
array contain same datatype it is not in vector
array has compatibility to use 2d,3d arrayalso
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
What are inline functions? What is the syntax for defining an inline function?
Is empty stack c++?
When should I use unitbuf flag?
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
How can you say that a template is better than a base class?
Can I learn c++ as my first language?
Is java a c++?
What is the need of a destructor? Explain with the help of an example.
Which of the following is evaluated first: a) && b) || c) !
Does a derived class inherit or doesn't inherit?
How do you print a string on the printer?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
Explain the term memory alignment?
the maximum length of a character constant can be a) 2 b) 1 c) 8