C++20 sections · 1024 units
Open in CourseQuiz: 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?
- A.1
- B.Undefined, depends on compiler
- C.2
- D.3
Knowledge check
If p1 is a shared_ptr and you create p2 = p1; and p3 = p1;, what is the reference count?