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
write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)
What is iterator c++?
Do inline functions improve performance?
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
How do you declare A pointer to a function which receives nothing and returns nothing
What is class syntax c++?
What is recursion?
What is the use of structure in c++?
What is the precedence when there is a global variable and a local variable in the program with the same name?
Write is a binary search tree? Write an algo and tell complexity?
What is difference between array and vector in c++?
How are pointers type-cast?
Write about the various sections of the executable image?
What are the advantages of pointers?
What is c++ coding?