Explain shallow copy?


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

Post New Answer

More C++ General Interview Questions

What are the operators in c++?

0 Answers  


What is difference between array and vector in c++?

0 Answers  


What is the basic difference between C and C++?

0 Answers   NIIT,


Why c++ does not have finally?

0 Answers  


What are the data types in c++?

0 Answers  






Difference between a homogeneous and a heterogeneous container

0 Answers  


Which is best c++ or java?

0 Answers  


1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?

5 Answers  


What are the rules about using an underscore in a c++ identifier?

0 Answers  


Describe the syntax of single inheritance in C++?

0 Answers   Fidelity,


What do you mean by overhead in c++?

0 Answers  


Which one of the following describes characteristics of "protected" inheritance? a) The base class has access only to the public or protected members of the derived class. b) The derived class has non-public, inheritable, access to all but the private members of the base class. c) The derived class has access to all members of the base class. d) The private members of the base class are visible within the derived class. e) Public members of the derived class are privately accessible from the base class.

4 Answers   Quark,


Categories