The default copy constructor and default operator = provide deep copy.
Correct Answer:
Verified
Q1: Given the definitions,
int *p1,*p2;
p1 = new int;
p2
Q2: In deep copy,pointers are followed and data
Q3: When declaring several pointer variables,there must be
Q4: Dangling pointers present no problem in C++
Q6: Give three uses for the * operator.Name
Q7: A function can return an array.
Q8: A copy constructor has the same name
Q9: Give the output from this code fragment:
int
Q10: Pointer variables are just memory addresses and
Q11: If a class is named MyClass,what must
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents