Which of the following statements correctly returns the memory from the dynamic array pointer to by p1 to the freestore?
A) delete [] p1;
B) delete p1[];
C) delete *p1;
D) delete p1;
Correct Answer:
Verified
Q29: Given that p1 is an integer pointer
Q30: If a program requires a dynamically allocate
Q31: What is wrong with the following code
Q32: Assuming that the pointer variable p1 is
Q33: Which of the following statements correctly prints
Q34: Given that p1 is a pointer, p1++
A)
Q35: Which of the following correctly declares a
Q36: If two pointer variables point to the
Q37: In which case would you consider using
Q38: Which of the following assigns to p1
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