What are shallow and deep copies?


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

Post New Answer

More C++ General Interview Questions

Explain what you mean by a pointer.

0 Answers   TCS,


Does there exist any other function which can be used to convert an integer or a float to a string?

0 Answers  


Why should we use null or zero in a program?

0 Answers  


Can char be a number c++?

0 Answers  


Write a program to swap 2 chars without using a third varable? char *s = "A"; char *p = "B";

7 Answers   CTS,


What is the best way to declare and define global variables?

0 Answers  


How can a struct in c++ differs from a struct in c?

0 Answers  


How many types of comments are there in c++?

0 Answers  


What is atoi?

0 Answers  


Differentiate between C and C++.

0 Answers   Wipro,


Is c better than c++?

0 Answers  


In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest.

5 Answers   GE,


Categories