C++/c++

Advertisement


Question
What is difference between assignment operator and copy constructor?
And any websites to study c and c++?


Answer
They both copy one object to the other, but the first one copies when both objects are created, and the second one copies when you are creating the second one. In other words, the copy constructor will be called when you construct an object (by copying another object to the current one).
There are many. How about: http://www.cplusplus.com/doc/tutorial/

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Sam

Expertise

You may ask me about simple to complicated C/C++ programming methods/style and most like questions about network programming in C++.

Experience

I'm a professional programer in C++ and network/internet programming.

©2016 About.com. All rights reserved.