Answer Posted / vikas sood
hi fellows..try this code
class A {
public:
A() { }
A(const A& rhs)
{
cout<<"inside copy constructor..";
}
};
int main()
{
std::vector<A> aVec(10);
}
The answer to this is another reason a copy constructor
will be called.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Why is polymorphism useful?
What is the main function c++?
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
Why ctype h is used in c++?
What is input operator in c++?
What is cin clear () in c++?
What apps are written in c++?
What is object in c++ example?
What jobs can you get with a c++ certification?
What is the exit function in c++?
Why do we use pointers in c++?
Define vptr.
How do I exit turbo c++?
What is flush programming?
What is lambda in c++?