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 |
Base class has two public data members. How can i derive a new class with one datamember as public and another data member as private?.
what is the realstic modeling?
What is operator overloading? Give Example
11 Answers CTS, IBM, TCS,
Program to print 0 to 9 in cross order
When you define a integer it gets stored in which data structure?(Stack or a heap)
write a c++ code to overload + and - for a stack class such that + provides push and - provides pop operation
1 Answers College School Exams Tests, HCL, IBM, TCS,
what is the main difference between c and c++?
386 Answers AZTEC, B.Tech, CMC, College School Exams Tests, HCL, IBM, ITM, Khalsa Institute, Microsoft, Oracle, Sanjeevni Institute, TCS, Tech Mahindra, Wipro, ZeOmega,
whats the difference between c and c++
What is polymorphism explain its types?
What is polymorphism and types?
what is data hiding.
what is an instance of a class