Hi to all ,i am new to the c++,but i want to know where the use of overloaded assignment operator and copy constructor,as they both are very close as in copy constructor we create a new object but not in assignment.so where the real use of both can u tell me a perfect answer.thanx .
The difference is generally just this: one creates a new object, and the other doesn't. The end result should be the same: the target should be configured to look exactly like the source.
thanx for giving replay,so can u tell me as in c if we want more memory again then we can use realloc,like dt in c++ if i want more memory again then wt we do.means if i use new oprator for 10bytes if i want more memory in dt same block then how can i increase memory is dr any way.