Multiple Choice
Which of the following statements correctly deletes a dynamically-allocated array pointed to by p?
A) delete p;
B) p delete[ ];
C) delete [ ] p;
D) delete array p;
E) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q14: C++ does not perform array bounds checking.
Q15: An array name is a pointer constant
Q16: A statement that displays the address of
Q17: The expression *s->p; is only meaningful if
Q18: A pointer variable may be initialized with<br>A)
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
Q23: The statement shared_ptr<int> p(new int); involves<br>A) a
Q24: The expression s->m is meaningful only when