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
Q3: Memory cannot be allocated after a program
Q4: With pointer variables you can access, but
Q5: The term pointer can be used interchangeably
Q6: Assuming that arr is an array identifier,
Q7: An array name is a pointer constant
Q9: When the less than ( < )
Q10: A pointer with the value 0 (zero)
Q11: _ can be used as pointers.
A) Array
Q12: The delete operator should only be used
Q13: Which arithmetic operations can be performed on
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