When a shallow copy of an Array class is made, the pointers of the original and copy point to the same dynamic array because:

A. the address of the pointer of one Array is copied into the pointer of the other Array
B. there can only be one dynamic array at any one time
C. every object made from an Array class has to point to the same place in the heap
D. if they didn’t, one would be a dangling pointer


A

Computer Science & Information Technology

You might also like to view...

The chkdsk command will not fix anything on the drive unless the drive is unlocked.

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

Computer Science & Information Technology

Digital images can be saved in dozens of different file formats, but only three of these file formats can be used for Web pages.

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

Computer Science & Information Technology

Spotting statistical trends in a large database is usually easy.

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

Computer Science & Information Technology

Programmers use the term ____ to describe any extra time and resources required by an operation.

A. black box B. overhead C. overload D. cohesion

Computer Science & Information Technology