C++20 sections · 1024 units
Open in Course

Quiz: shared_ptr

Knowledge check

Check Your Understanding

If p1 is a shared_ptr and you create p2 = p1; and p3 = p1;, what is the reference count?

  1. A.1
  2. B.Undefined, depends on compiler
  3. C.2
  4. D.3
Start the roadmap to answer the quizzes and solve the challenges