You are to compare and contrast the two assignments.

Given the definitions,
```
int *p1, *p2;
p1 = new int;
p2 = new int;
```

a) p1 = p2;
b) *p1 = *p2


a) Makes p1 point to the same place in memory to which p2 points. Orphans memory p1 did point to.
b) Makes data where p1 points the same as the data where p2 points.

Computer Science & Information Technology

You might also like to view...

What are three advantages of using an active RFID tag?

What will be an ideal response?

Computer Science & Information Technology

An Impress presentation is made up of a series of slides

Indicate whether the statement is true or false

Computer Science & Information Technology

If a PC fails its initial NAC health assessment, it may be ________.

A. allowed to go to a remediation server and other nonsensitive resources B. wiped completely C. none of the options D. refused access

Computer Science & Information Technology

When you click an unselected path segment with the Direct Selection tool, the anchor points on the path appear how?

A. hollow B. filled in C. curvy D. bold

Computer Science & Information Technology