If two pointer variables point to the same memory location, what happens when one of the pointers is freed?
A) The other pointer should be considered to be un-initialized
B) The other pointer still points to a valid memory address
C) If you attempt to free the other pointer a run-time error will occur.
D) All of the above
E) A and C
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
Q37: In which case would you consider using
Q38: Which of the following assigns to p1
Q39: Which of the following statements correctly returns
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