Multiple Choice
The statement shared_ptr<int> p(new int) ; involves
A) a single allocation of a dynamic block of memory.
B) two allocations of two different dynamic blocks of memory.
C) three allocations of three different dynamic blocks of memory.
D) no allocations of dynamic memory.
E) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Q18: A pointer variable may be initialized with<br>A)
Q19: Which of the following statements correctly deletes
Q19: Which of the following statements correctly deletes
Q20: The code segment int *ptr; has the
Q22: The statement cin >> *p;<br>A) stores the
Q24: The expression s->m is meaningful only when
Q25: A temporary value in a program can
Q26: The set of operations supported by the
Q27: The term pointer can be used interchangeably
Q28: When you work with a dereferenced pointer,