Question: programming in c++ 13. Given the following code: double *a, *b; a = new double; *a - 9.9; Write a code segment to deep copy
13. Given the following code: double *a, *b; a = new double; *a - 9.9; Write a code segment to deep copy the data from a to *b, so that if a is deleted, b is not affected
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
