What is shallow copy?

A.     A shallow copy creates a copy of the dynamically allocated objects too. | CPP MCQs
B.     A shallow copy just copies the values of the data as they are.
C.     A shallow copy creates a copy of the statically allocated objects too
D.     Both b and c above

Ans: B

0 comments:

Post a Comment

Blogger news