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
When does a name clash occur in c++?
What is #include iomanip?
How many ways can a variable be initialized into in C++?
Is c++ a float?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
Give 10 points of differences between C & C++.
Can we use pointers in c++?
What are shallow and deep copy?
What are the four partitions in which c++ compiler divides the ram?
Write about all the implicit member functions of a class?
How a macro differs from a template?
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL
Explain stack unwinding.
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
What are the vectors in c++?