Answer the following questions true (T) or false (F)

1. In deep copy, pointers are followed and data and the pointer structure are duplicated.

2. A function can return an array.

1. True
Explanation: This is the definition of deep copy: duplicating the pointer structure and data.
2. False
Explanation: A function can return a pointer to a object whose lifetime is longer than the function’s lifetime, which can be a dynamic array, but arrays may not be returned by a function. Specifically, the object must not be a local variable,

Computer Science & Information Technology

You might also like to view...

A chart that you create in PowerPoint is similar to a chart that you would create in ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Active Directory Users and Computers can be used to add organizational units to a domain

Indicate whether the statement is true or false

Computer Science & Information Technology