Home »
MCQs »
C++ MCQs
is the 'unique_ptr' smart pointer maintaining a reference counter?
150. is the "unique_ptr" smart pointer maintaining a reference counter?
- Yes
- No
Answer: B) NO
Explanation:
The "unique_ptr" does not maintain a reference counter while "shared_ptr" maintains a reference counter.