What is the difference between a copy constructor and an
overloaded assignment operator?
Answer Posted / vsinghal
In case of copy constructor when the object goes out of
scope its destructor will be called while in case of
assignment operator no destructor will be called.
| Is This Answer Correct ? | 12 Yes | 14 No |
Post New Answer View All Answers
How would you obtain segment and offset addresses from a far address of a memory location?
Is c++ faster than c?
What is abstraction with real time example?
Describe protected access specifiers?
Can we define function inside main in c++?
What language does google use?
What is data type in c++?
What will happen if a pointer is deleted twice?
How is c++ different from java?
How many different levels of pointers are there?
What c++ library is string in?
What are structs in c++?
What is the difference between reference and pointer?
How much do coding jobs pay?
What is a pointer with example?