How does the copy constructor differ from the assignment operator (=)?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Difference between pointer to constant vs. Pointer constant

0 Answers  


why can't we declare data member of class auto register or extern

1 Answers  


Write a String class which has: 1) default constructor 2) copy constructor 3) destructor 4) equality operator similar to strcmp 5) constructor which takes a character array parameter 6) stream << operator

2 Answers   HCL, Lehman Brothers, Zoomerang,


What is the latest c++ version?

0 Answers  


Refer to a name of class or function that is defined within a namespace?

0 Answers  


Define pointers?

0 Answers  


Mention the storage classes in c++.

0 Answers  


What are activex and ole?

0 Answers  


Is it possible to provide special behavior for one instance of a template but not for other instances?

0 Answers  


What is the copy-and-swap idiom?

0 Answers  


What is compilation?

1 Answers   Datamatics, TCS,


How would you represent an error detected during constructor of an object?

1 Answers  


Categories