Quiz

Here's a short quiz to test our understanding.

1

Which of the following are valid operations on p given const std::unique_ptr<int> p = std::make_unique<int>(42)? Select all that apply.

A)

++(*p)

B)

++p

C)

*p = *p**p

D)

*p = **p

Question 1 of 60 attempted

Get hands-on with 1200+ tech skills courses.