Which statements is false:
A) shared_ptrs provide the pointer operators dot(.) , star(*) and arrow(->) .
B) We get the reference count using the shared_ptr member function use_count, which returns the number of shared_ptrs to the resource.
C) Changes made to the resource of a shared_ptr are "seen" by all shared_ptrs to that resource.
D) shared_ptr member function reset releases the current resource and sets the shared_ptr to NULL. If there are no other shared_ptrs to the resource, it's destroyed.
Correct Answer:
Verified
Q9: When the reference count reaches zero, the
Q10: In the following function int square(int value)
{
Return
Q11: Which of the following statements is false?
A)
Q12: There are many cases in which the
Q13: The _ multithreading header contains class templates,
Q15: The _ multithreading header contains classes, a
Q16: Which statement is false?
A) There's overhead inherent
Q17: Smart pointers _.
A) strengthen the process of
Q18: If a program throws an exception before
Q19: Shared_ptrs use _ counting to determine how
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents