Given the definitions,

```
int *p1, *p2;
p1 = new int;
p2 = new int;
```
You are to compare and contrast the two assignments.
```
a) p1 = p2;
b) *p1 = *p2

```
What will be an ideal response?

```
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...

Which of the following is not overloaded for strings?

a. -= b. >> c. += d. getline()

Computer Science & Information Technology

The _______ is the area between the content and the border.

a. border b. spacing c. padding d. none of the above

Computer Science & Information Technology