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
What is the difference between global variables and local variable
What does return 0 do in c++?
What are the four partitions in which c++ compiler divides the ram?
what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?
What are the benefits of c++?
Difference between inline functions and macros?
What is binary object model?
What is the advantage of an external iterator.
What are the differences between the function prototype and the function defi-nition?
Using a smart pointer can we iterate through a container?
What is the difference between a template and a macro?
What are virtual functions in c++?
What is a dangling pointer in c++?
Explain deep copy and a shallow copy?
What is the difference between struct and class?