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
What is c++ map?
Define 'std'.
What causes a runtime error c++?
What is flush programming?
What are the uses of pointers?
What are the defining traits of an object-oriented language?
Explain queue. How it can be implemented?
How can you differentiate between inheritance and implementation in c++?
Is c++ harder than java?
Explain mutable storage class specifier.
What is the difference between set and map in c++?
What is the difference between a reference and a pointer?
Is python written in c or c++?
Which function should be used to free the memory allocated by calloc()?
What is c++ and its features?